mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Otherwise, we'll fall over if we try to mangle a retroactive conformance. Fixes <rdar://problem/70483417>.
22 lines
428 B
Swift
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
|
|
}
|
|
|
|
|