mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Our poor non-resilient vtables can't handle new methods being added to superclasses, so when we do vtable layout we need to know that the superclass is complete. If the superclass's initializers were never needed, though, we would have never added them to the vtable, and we'd end up with the wrong offset for all subclass methods. <rdar://problem/17645615> Swift SVN r19998
5 lines
97 B
Swift
5 lines
97 B
Swift
class EmptyBase {}
|
|
class Subclass : EmptyBase {
|
|
class var classProp: String { return "abc" }
|
|
}
|