Skip to content

Commit 0e06792

Browse files
committed
Add regression test for SR-10201
1 parent 54155fe commit 0e06792

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// RUN: %target-swift-frontend -typecheck -verify %s
2+
3+
struct A {
4+
typealias Value = Int
5+
}
6+
7+
protocol B {
8+
typealias Value = A.Value
9+
typealias T = String
10+
}
11+
12+
protocol NestedProtocol {
13+
typealias _B = B
14+
}
15+
16+
struct Something: NestedProtocol {
17+
18+
struct InnerTest: _B {
19+
var value: Value = 42
20+
var t: T = "wait what?"
21+
}
22+
}
23+
24+
protocol X {}
25+
26+
protocol Y {
27+
typealias _X = X
28+
var x: _X { get }
29+
}
30+
31+
struct Struct: Y {
32+
var x: _X = __X()
33+
}
34+
35+
extension Struct {
36+
struct __X: _X {}
37+
}

0 commit comments

Comments
 (0)