mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
8 lines
598 B
Swift
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
|