Files
swift-mirror/validation-test/compiler_crashers_fixed/ContextualFailure-tryProtocolConformanceFixIt-a8c84d.swift
Hamish Knight 4912cd52a7 [CS] Refuse to match error types
We ought to consider making this an assert, but for now let's bail
out of solving.
2026-02-12 11:34:47 +00:00

15 lines
524 B
Swift

// {"kind":"typecheck","original":"bee4b7dd","signature":"swift::constraints::ContextualFailure::tryProtocolConformanceFixIt() const","signatureAssert":"Assertion failed: (!missingProtoTypeStrings.empty() && \"type already conforms to all the protocols?\"), function tryProtocolConformanceFixIt"}
// RUN: not %target-swift-frontend -typecheck %s
protocol a<b, c> {
associatedtype b
associatedtype c
}
extension Int: a {
struct d<e>: a {
typealias b = e
}
func f() -> a<a, a> {
d<Int>(<#expression#>)
}
}