mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
19 lines
280 B
Swift
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
|
|
}
|
|
}
|