Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0044-enum-dot-crash.swift
Pavel Yaskevich d111e9b4be [Diagnostics] When building a subscript don't assume that overload is always present
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>.
2016-11-28 19:18:44 -08:00

8 lines
103 B
Swift

// RUN: not %target-swift-frontend %s -emit-silgen
enum X {
init?(a: Int) {
.p[a]
}
}