mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This is the same as the last few commits, but with the additional complication of designated initializers affecting other behavior around the type. In particular, convenience initializers cannot be invoked on subclasses if the designated initializers are not all present on the subclass. If a designated initializer is dropped, it's not possible to satisfy that. It would be nice to do better here, since a class's initializers are mostly independent of the superclass's initializers. Unfortunately, it still affects whether /this/ class can inherit convenience initializers, as well as vtable layout. This is conservative, at least.
3.0 KiB
3.0 KiB