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

6 lines
571 B
Swift

// {"kind":"typecheck","original":"901f9c6d","signature":"swift::constraints::ConstraintSystem::getCalleeLocator(swift::constraints::ConstraintLocator*, bool, llvm::function_ref<swift::Type (swift::Expr*)>, llvm::function_ref<swift::Type (swift::Type)>, llvm::function_ref<std::__1::optional<swift::constraints::SelectedOverload> (swift::constraints::ConstraintLocator*)>)","signatureAssert":"Assertion failed: (!fnTy->is<TypeVariableType>()), function operator()"}
// RUN: not --crash %target-swift-frontend -typecheck %s
let a = [].reduce([]) {
0 && a($1 == a
$1 {