mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Make sure we call `simplifyType` for the opened type bindings to ensure holes get converted to UnresolvedType. rdar://154553285
7 lines
232 B
Swift
7 lines
232 B
Swift
// RUN: %target-typecheck-verify-swift -disable-experimental-parser-round-trip
|
|
|
|
// Make sure we don't crash
|
|
func testInvalidInInterpolation(_ x: Int) {
|
|
_ = "\((x, \[]))" // expected-error {{invalid component of Swift key path}}
|
|
}
|