SILGen: Don't ask for context substitution map of existential

This commit is contained in:
Slava Pestov
2024-09-19 12:45:26 -04:00
parent abbc37e41d
commit 74b2b03565
2 changed files with 23 additions and 8 deletions

View File

@@ -677,3 +677,12 @@ func test_optional_chaining_with_function_conversion() {
_ = data.compactMap(\.elements!.db)
}
}
protocol HasAlias {
var id: Self.ID { get }
typealias ID = Int
}
func testHasAlias() {
_ = \HasAlias.id
}