We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init
md5: 324fdae779938133f473ce7d3b42961e
relates to:
Issue Description:
If you have an `init` case of an enum, you can use it implicitly just like you can with structs:
enum Foo { case `init`(Int) } // I would expect this to work... let bar = Foo.init(1) // ...but not this let foo = Foo(1)
Is that intentional?
The text was updated successfully, but these errors were encountered:
Definitely a bug. This is caused by init not having a special DeclBaseName yet, like subscripts and deinits.
@slavapestov, you just got a Radar for this, right?
Sorry, something went wrong.
#15201
slavapestov
No branches or pull requests
Additional Detail from JIRA
md5: 324fdae779938133f473ce7d3b42961e
relates to:
init
identifier causes compile errorIssue Description:
If you have an `init` case of an enum, you can use it implicitly just like you can with structs:
Is that intentional?
The text was updated successfully, but these errors were encountered: