mirror of
https://github.com/apple/swift.git
synced 2026-10-18 17:49:23 +02:00
Short-circuit calls where all arguments are invalid, otherwise the solver would end up producing a solution for every overload which it cannot disambiguate which quickly turns into "too complex" situation.
4 lines
464 B
Swift
4 lines
464 B
Swift
// {"kind":"typecheck","signature":"formatDiagnosticArgument(llvm::StringRef, llvm::StringRef, llvm::ArrayRef<swift::DiagnosticArgument>, unsigned int, swift::DiagnosticFormatOptions, llvm::raw_ostream&)","signatureAssert":"Assertion failed: (Ptr && \"Cannot dereference a null Type!\"), function operator->","signatureNext":"DiagnosticEngine::formatDiagnosticText"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
@propertyWrapper struct a func b(@a Int) b($c:d
|