mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The logic here was buggy; we would dyn_cast the decl to a FuncDecl and return early if the cast failed; the ConstructorDecl logic had no effect at all. Furthermore, it was wrong, for two reasons: - even non-required designated inits still appear in the vtable - in the resilient case, the constructor needs public linkage unlike other non-final public methods, since it is referenced directly by subclasses when they perform a super.init() delegation Fixes <https://bugs.swift.org/browse/SR-9939>, <rdar://problem/48403349>.
34 KiB
34 KiB