mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Instead of adding a resolveDeclSignature() call here, I'm going to live dangerously and try to only get the enum element type in the case where SIL type lowering has already computed it, that is, if the enum is not indirect. Soon this will become moot anyway because getInterfaceType() will be a request.
11 lines
121 B
Swift
11 lines
121 B
Swift
public indirect enum E {
|
|
case foo(Any)
|
|
case bar(EE)
|
|
case blah
|
|
}
|
|
|
|
public enum EE {
|
|
case x(Int)
|
|
case y(String)
|
|
}
|