Files
swift-mirror/validation-test/compiler_crashers_2/4437c5c5a29553a.swift
Hamish Knight 760959f273 [test] Add assertion messages to crasher test cases
If the crasher hits an assertion failure, include the message in the
header.
2025-08-04 13:00:23 +01:00

14 lines
472 B
Swift

// {"kind":"typecheck","original":"5af4a4fb","signature":"swift::constraints::ConstraintSystem::getBindingsFor(swift::TypeVariableType*)","signatureAssert":"Assertion failed: (typeVar->getImpl().getRepresentative(nullptr) == typeVar && \"not a representative\"), function getBindingsFor"}
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a {
func b(arr: [a]) {
arr.compactMap {
{ c in
d ?? {
$0..
}
}
}
}
}