mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We allow placeholder types in interface types in certain cases to allow better recovery since we can suggest the inferred type as a replacement. When referencing those decls though we need to make sure we record a fix since we cannot form a valid solution with them.
6 lines
411 B
Swift
6 lines
411 B
Swift
// {"kind":"typecheck","signature":"(anonymous namespace)::ExprRewriter::coerceToType(swift::Expr*, swift::Type, swift::constraints::ConstraintLocatorBuilder)::$_3::operator()(swift::Type, swift::Type) const","signatureAssert":"Assertion failed: (restriction == ConversionRestrictionKind::DeepEquality), function operator()"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
func a(inout _ )
|
|
var b = String
|
|
a(b
|