mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ConstraintSystem] Bind holes to UnresolvedType instead of Any.
This commit is contained in:
@@ -31,8 +31,8 @@ class Demo {
|
||||
}
|
||||
|
||||
let some = Some(keyPath: \Demo.here)
|
||||
// expected-error@-1 {{cannot convert value of type 'KeyPath<Demo, (() -> Void)?>' to expected argument type 'KeyPath<Demo, ((Any) -> Void)?>'}}
|
||||
// expected-note@-2 {{arguments to generic parameter 'Value' ('(() -> Void)?' and '((Any) -> Void)?') are expected to be equal}}
|
||||
// expected-error@-1 {{cannot convert value of type 'KeyPath<Demo, (() -> Void)?>' to expected argument type 'KeyPath<Demo, ((V) -> Void)?>'}}
|
||||
// expected-note@-2 {{arguments to generic parameter 'Value' ('(() -> Void)?' and '((V) -> Void)?') are expected to be equal}}
|
||||
// expected-error@-3 {{generic parameter 'V' could not be inferred}}
|
||||
// expected-note@-4 {{explicitly specify the generic arguments to fix this issue}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user