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

9 lines
647 B
Swift

// {"kind":"typecheck","signature":"swift::constraints::FunctionTypeMismatch::FunctionTypeMismatch(swift::constraints::Solution const&, swift::ContextualTypePurpose, swift::Type, swift::Type, llvm::ArrayRef<unsigned int>, swift::constraints::ConstraintLocator*)","signatureAssert":"Assertion failed: (getFromType()->is<AnyFunctionType>() && getToType()->is<AnyFunctionType>()), function FunctionTypeMismatch"}
// RUN: not --crash %target-swift-frontend -typecheck %s
class a < b, c {
typealias d = b typealias e =
c class f<b, c> : a<b, c> class g<h, i> : f<(h, i), c> {
j = d->e class g<h> : f<(h, i), c> {
k {
j = d->e