mirror of
https://github.com/apple/swift.git
synced 2026-10-20 19:13:47 +02:00
In diagnostic mode, propagate function value placeholder/hole to arguments and result. This helps to avoid recording extraneous fixes because generic parameters and leading-dot syntax arguments cannot be inferred in this case.
4 lines
398 B
Swift
4 lines
398 B
Swift
// {"kind":"typecheck","original":"0052e8e2","signature":"swift::constraints::Solution::getFunctionArgApplyInfo(swift::constraints::ConstraintLocator*) const","signatureAssert":"Assertion failed: (isa<To>(Val) && \"cast<Ty>() argument of incompatible type!\"), function cast","signatureNext":"RValueTreatedAsLValueFailure::diagnoseAsError"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
& &<##>
|