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

8 lines
598 B
Swift

// {"kind":"typecheck","signature":"recordTypeWitness(swift::NormalProtocolConformance*, swift::AssociatedTypeDecl*, swift::Type, swift::TypeDecl*)","signatureAssert":"Assertion failed: (conformance->getTypeWitnessUncached(assocType) .getWitnessType() ->isEqual(type) && \"Conflicting type witness deductions\"), function recordTypeWitness"}
// RUN: not --crash %target-swift-frontend -typecheck %s
protocol a{associatedtype b} protocol c
: a{d(b)} protocol e{associatedtype f} extension e {
protocol g : e, c { associatedtype f : c associatedtype b }
struct h<i> : g {
typealias f = i