Skip to content

Commit c1dc446

Browse files
committed
Add regression test for rdar://111991454
1 parent 03467a1 commit c1dc446

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// RUN: not %target-swift-frontend -typecheck %s
2+
3+
protocol Box<Content> {
4+
associatedtype Content
5+
var value: Content {get set}
6+
}
7+
extension Box where Self == _Box {
8+
init(_ v: Content) {
9+
self.init(value: v)
10+
}
11+
}
12+
13+
struct _Box<Content> {
14+
var value: Content
15+
init(value: Content) {
16+
self.value = value
17+
}
18+
}

0 commit comments

Comments
 (0)