mirror of
https://github.com/apple/swift.git
synced 2026-09-30 10:17:34 +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.
8 lines
494 B
Swift
8 lines
494 B
Swift
// {"kind":"typecheck","original":"1aac3681","signature":"swift::constraints::Solution::getFunctionArgApplyInfo(swift::constraints::ConstraintLocator*) const","signatureAssert":"Assertion failed: (Val && \"isa<> used on a null pointer\"), function doit","signatureNext":"NonClassTypeToAnyObjectConversionFailure::diagnoseAsError"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
@propertyWrapper struct a<b {
|
|
init(wrappedValue: b AnyObject)
|
|
var wrappedValue: b {
|
|
@a var c = (0
|
|
""
|