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
Attachment: Download
Xcode 10.2 beta 2
md5: a3e401e1593c9e4c9bddb38188f91607
is duplicated by:
Issue Description:
These don't compile:
Nested overloads with different parameter types.
Calling a nested function before an overload is defined later in the function.
The text was updated successfully, but these errors were encountered:
func ƒ() { func nested(_: Bool) { } func nested(_: Int) { } } func ƒ2() { func nested(bool _: Bool) { } nested(bool: false) func nested(int _: Int) { } }
Sorry, something went wrong.
I'm not sure if there was an explicit discussion against allowing nested overloads by type. The second example certainly seems like a bug to me, though.
cc @DougGregor, @xedin, davidungar (JIRA User)
Comment by David Ungar (JIRA)
Thanks, @belkadan for the heads-up. Thanks Jessy (JIRA User).
#34246
No branches or pull requests
Attachment: Download
Environment
Xcode 10.2 beta 2
Additional Detail from JIRA
md5: a3e401e1593c9e4c9bddb38188f91607
is duplicated by:
Issue Description:
These don't compile:
Nested overloads with different parameter types.
Calling a nested function before an overload is defined later in the function.
The text was updated successfully, but these errors were encountered: