Skip to content

Commit f92a67d

Browse files
committed
Check type witnesses in a couple of associated type inference tests
1 parent fab7ff0 commit f92a67d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/decl/protocol/req/associated_type_inference_tautology_2.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ struct S: P {
1818
func f(_: Float) {}
1919
func f(_: String) {}
2020
}
21+
22+
let x: String.Type = S.A.self

test/decl/protocol/req/rdar122586685.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ extension P {
1212
public subscript(index: Int) -> String { fatalError() }
1313
public func makeIterator() -> AnyIterator<String> { fatalError() }
1414
}
15+
16+
let x: AnyIterator<String>.Type = S.Iterator.self

0 commit comments

Comments
 (0)