mirror of
https://github.com/apple/swift.git
synced 2026-10-12 14:50:47 +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.
6 lines
384 B
Swift
6 lines
384 B
Swift
// {"kind":"typecheck","original":"2036470e","signature":"swift::constraints::Solution::getFunctionArgApplyInfo(swift::constraints::ConstraintLocator*) const","signatureAssert":"Assertion failed: (Val && \"isa<> used on a null pointer\"), function doit","signatureNext":"InvalidPackExpansion::diagnoseAsError"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
sequence(
|
|
(a
|
|
repeat a
|