[SR-2971] Whole Module Optimization: Convenience initializer not calling subclass initializer #45561
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
optimized only
Flag: An issue whose reproduction requires optimized compilation
Attachment: Download
Environment
Swift 3.0.1, Xcode 8.1 (8B62), macOS Sierra
Additional Detail from JIRA
md5: ecff97bffce8a90c3aeb23958a7a64d5
Issue Description:
See attached sample project.
There is an
open
class in the embedded framework calledMyView
. It has a convenience initializer. There is a subclass ofMyView
calledOverrideView
in the main app.OverrideView
overrides the designated/required initializers ofMyView
.When Whole Module Optimization is turned off for the framework:
OverrideView
. ✅When Whole Module Optimization is turned on for the framework:
MyView
. ❌The text was updated successfully, but these errors were encountered: