mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
472 B
Swift
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..
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|