Files
swift-mirror/test/Constraints/rdar154553285.swift
Hamish Knight 2acacc9a74 [CS] Avoid escaping solver-allocated types in computeSubstitutions
Make sure we call `simplifyType` for the opened type bindings to
ensure holes get converted to UnresolvedType.

rdar://154553285
2025-06-30 10:34:18 +01:00

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}}
}