mirror of
https://github.com/apple/swift.git
synced 2026-10-08 12:50:50 +02:00
2019 me had good intentions with this, but it's a fundamentally unsound hack and isn't worth the tradeoff. Let's just remove it. rdar://141047299
12 lines
475 B
Swift
12 lines
475 B
Swift
// {"kind":"typecheck","signature":"swift::CallerSideDefaultArgExprRequest::evaluate(swift::Evaluator&, swift::DefaultArgumentExpr*) const","signatureAssert":"Assertion failed: (ctx.Diags.hadAnyError()), function evaluate","signatureNext":"CallerSideDefaultArgExprRequest::OutputType"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
@propertyWrapper
|
|
struct a {
|
|
var wrappedValue: Int?
|
|
var projectedValue: a {
|
|
}
|
|
init(projectedValue: a)
|
|
}
|
|
func b(@a c: Int? = nil)
|
|
b()
|