Files
swift-mirror/validation-test/compiler_crashers_fixed/CallerSideDefaultArgExprRequest-evaluate-372b93.swift
Hamish Knight d0b66ee70e [Sema] Remove DiagnosticTransaction from CallerSideDefaultArgExprRequest
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
2026-07-28 12:11:50 +01:00

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()