mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This handles situation when overload for the subscript hasn't been resolved by constraint solver, such might happen, for example, if solver was allowed to produce solutions with free or unresolved type variables (e.g. when running diagnostics). Resolves: <rdar://problem/27329076>, <rdar://problem/28619118>, <rdar://problem/2778734>.
8 lines
103 B
Swift
8 lines
103 B
Swift
// RUN: not %target-swift-frontend %s -emit-silgen
|
|
|
|
enum X {
|
|
init?(a: Int) {
|
|
.p[a]
|
|
}
|
|
}
|