Skip to content

Commit 24e02a2

Browse files
committed
Add a test for referencing a type nested in a generic class from a derived class
This was reported in rdar://problem/31529413 and appears to have already been fixed. Adding this test to ensure we have some coverage for this.
1 parent 961a319 commit 24e02a2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// RUN: %target-typecheck-verify-swift
2+
3+
enum E { case A }
4+
5+
class C<T> {
6+
struct Nested {
7+
var value: T
8+
}
9+
}
10+
11+
class D: C<E> {
12+
func test() {
13+
_ = Nested(value: .A)
14+
}
15+
}

0 commit comments

Comments
 (0)