Files
swift-mirror/validation-test/compiler_crashers_fixed/Solution-getFunctionArgApplyInfo-6a7d78.swift
Kathy Gray 90603c0dc9 [crashers] add missing getFunctionArgApplyInfo null checks
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.
2026-06-17 10:25:58 +01:00

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
""