Skip to content

Commit eff3255

Browse files
committed
[NCGenerics] add coverage for rdar://118697289
1 parent 9da000f commit eff3255

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/ModuleInterface/Inputs/NoncopyableGenerics.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,16 @@ public struct Toys {
2020
(x, y) = (10, 11)
2121
}
2222

23+
public struct rdar118697289_S1<Element> {
24+
let element: Element
25+
func f() -> Element { element }
26+
}
27+
28+
public struct rdar118697289_S2<Element> {
29+
let element: Element
30+
subscript(i: Int) -> Element {
31+
element
32+
}
33+
}
34+
2335
}

0 commit comments

Comments
 (0)