Skip to content

Commit a075459

Browse files
committed
[TypeChecker] NFC: Add test-case for rdar://75978086
1 parent 56c96c6 commit a075459

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// RUN: %target-swift-frontend -disable-availability-checking -typecheck -verify %s
2+
3+
// rdar://75978086 - static member lookup doesn't work with opaque types
4+
5+
protocol Intent {}
6+
7+
extension Intent where Self == Intents.List {
8+
static func orderedList() -> Self {
9+
return Intents.List.orderedList(nestedIn: nil)
10+
}
11+
}
12+
13+
enum Intents {
14+
enum List: Intent {
15+
case orderedList(nestedIn: Any?)
16+
}
17+
}
18+
19+
let rdar75978086: some Intent = .orderedList() // Ok

0 commit comments

Comments
 (0)