Files
swift-mirror/validation-test/compiler_crashers_2/2215911baba3c39.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

16 lines
476 B
Swift

// {"kind":"emit-silgen","original":"e8914023","signature":"swift::Lowering::AbstractionPattern::getNumFunctionParams() const","signatureAssert":"Assertion failed: (isa<To>(Val) && \"cast<Ty>() argument of incompatible type!\"), function cast"}
// RUN: not --crash %target-swift-frontend -emit-silgen %s
func a<b, each c>(
_: (repeat each c)!,
_: b
) {
}
struct d {
let e = ""
static func == (g: Self, f: Self) {
let h =
\.e as (Self) -> _
a(h, f)
}
}