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

11 lines
544 B
Swift

// {"kind":"typecheck","signature":"swift::TypeTransform<swift::Type::transformRec(llvm::function_ref<std::__1::optional<swift::Type> (swift::TypeBase*)>) const::Transform>::doIt(swift::Type, swift::TypePosition)","signatureAssert":"Assertion failed: (type->isTypeParameter() && \"Expected a type parameter\"), function requiresProtocol"}
// RUN: not --crash %target-swift-frontend -typecheck %s
protocol a {
associatedtype b
typealias c = a
}
struct d : e
protocol e : a {
associatedtype c where b == c.b
associatedtype f = Self