Files
swift-mirror/test/IRGen/Inputs/resilient-class.swift
Arnold Schwaighofer 3930fc4cfe IRGen: Fix enable-testing of internal with resilient super class
Enable testing makes `internal` types visible from outside the module.
We can no longer treat super classes as resilient.

Follow-up to #41044.

rdar://90489618
2022-03-30 07:12:14 -07:00

19 lines
280 B
Swift

open class Base {
var x = 1
}
internal struct TypeContainer {
enum SomeEnum:String {
case FirstCase = "first"
case SecondCase = "second"
}
}
internal class SubClass : Base {
var y : TypeContainer.SomeEnum
override init() {
y = .FirstCase
}
}