Files
swift-mirror/test/IRGen/retroactive_conformance.swift
Slava Pestov fc74fb0735 IRGen: Set the mangler's generic signature correctly
Otherwise, we'll fall over if we try to mangle a retroactive conformance.

Fixes <rdar://problem/70483417>.
2021-03-05 21:31:24 -05:00

22 lines
428 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module-path %t/retroactive_conformance_other.swiftmodule %S/Inputs/retroactive_conformance_other.swift
// RUN: %target-swift-frontend -emit-ir %s -I %t
import retroactive_conformance_other
public struct Foo<T: P> {}
public enum MyError : Error {
case a
}
extension E: P where First: P {
}
public enum Bar<T: P> {
case x(Foo<E<T, MyError>>)
case y
}