mirror of
https://github.com/apple/swift.git
synced 2026-10-20 19:13:47 +02:00
21 lines
669 B
Swift
21 lines
669 B
Swift
// {"kind":"emit-sil","original":"e70b0376","signature":"swift::Lowering::ArgumentSource::materialize(swift::Lowering::SILGenFunction&, swift::Lowering::AbstractionPattern, swift::SILType) &&","signatureAssert":"Assertion failed: (!destType || destType.getObjectType() == SGF.getLoweredType(origFormalType, substFormalType).getObjectType()), function materialize","signatureNext":"ArgEmitter::emit"}
|
|
// RUN: not --crash %target-swift-frontend -emit-sil %s
|
|
protocol a {
|
|
associatedtype b
|
|
func c(d: Int) -> b
|
|
}
|
|
struct e: a {
|
|
func c(d: Int) {
|
|
}
|
|
}
|
|
struct f {
|
|
subscript(g: StringProtocol) -> some a {
|
|
e()
|
|
}
|
|
}
|
|
func h() {
|
|
let i = f()
|
|
let j = i[""]
|
|
.c
|
|
}
|