The compiler doesn't raise a compilation error for not calling the designated initializer #65316
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
The compiler doesn't raise a compilation error for not calling a designated initializer for a subclass of
NSWindow
if it has a let property.Steps to reproduce
If I change
var name
tolet name
, the compiler raises the compilation error correctly.Expected behavior
NSWindow should have only one initializer init(contentRect:styleMask:backing:defer:) marked as NS_DESIGNATED_INITIALIZER, so both AWindow and BWindow should raise compilation errors
Environment
Target: arm64-apple-macosx13.0
Build version 14C18
The text was updated successfully, but these errors were encountered: