mirror of
https://github.com/apple/swift.git
synced 2026-10-18 17:49:23 +02:00
Result of getFunctionArgApplyInfo can be null and a few callers failed to check and return false accordingly; corrected these missed patterns. Some internal accesses could also receive null and failed to check, added checks and returned null in these circumstances. A few more checks are needed but don't seem to be causing crashes now.
5 lines
292 B
Swift
5 lines
292 B
Swift
// {"kind":"typecheck","original":"74e5f02c","signature":"swift::constraints::MissingArgumentsFailure::diagnoseAsError()","signatureNext":"AddMissingArguments::diagnose"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
func a<each c, d, e>(repeat (each c, d) -> e, repeat each c)
|
|
a(repeat b
|