Confusing designated initializer rules #80311
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
Pretty sure we're breaking rule #1 for initializer delegation here: https://docs.swift.org/swift-book/documentation/the-swift-programming-language/initialization/#Initializer-Delegation-for-Class-Types
If a derived class has a let property that's initialized before calling it's super's convenience initializer, that call is allowed. If the let property is rewritten as a var or removed, the appropriate super init delegation to a designated initializer diagnostic is emitted.
Reproduction
Expected behavior
I believe that diagnostic should be emitted for all three derived classes, this would be consistent with the docs.
Environment
Xcode version 16.2 (16C5032a)
Additional information
No response
The text was updated successfully, but these errors were encountered: