constructing an object of class type X with a metatype value must use a 'required' initializer #71874
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
The following code can compile on Darwin platform but on Linux platform we will get a compiler error.
Reproduction
Run
swift package init
to add a new empty package. And then update the main file to the following code.Expected behavior
Compile success on Linux.
Environment
Additional information
Forums discussion: https://forums.swift.org/t/nsobject-related-compile-issue-on-linux/70266/8
The text was updated successfully, but these errors were encountered: