mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Missed this in my previous patch, make sure we replace an error with a hole if necessary.
11 lines
472 B
Swift
11 lines
472 B
Swift
// {"kind":"typecheck","signature":"swift::constraints::ConstraintSystem::applySolution(swift::constraints::Solution&, swift::constraints::SyntacticElementTarget)","signatureAssert":"Assertion failed: (isValidType(solution.simplifyType(type)) && \"node type has invalid type\"), function applySolution"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
@propertyWrapper struct a<b > {
|
|
init(wrappedValue: b)
|
|
projectedValue:
|
|
var wrappedValue: b
|
|
}
|
|
{
|
|
@a var c = false
|
|
}
|