-
Notifications
You must be signed in to change notification settings - Fork 1.7k
unexpected token 'Function' #28610
New issue
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
Comments
https://github.com/dart-lang/code_builder/blob/master/lib/dart/core.dart#L114 Is this a bug? Is |
For more details about this feature, please check out #27527. We are currently working with this feature and the breakage that it causes, in particular because it will be similar to a built-in identifier (i.e., it cannot be the name of a type, except for the one in core). The parser is allowed to disambiguate declarations based on having seen However, you won't be able to use |
@eernstg thanks a lot for your explanation. I also created dart-lang/tools#904 recently. I'm totally fine with bugs caused by using bleeding edge builds not being fixed. |
The parser is allowed to disambiguate and commit to seeing an inline function type (as opposed to a typedef'd function type) when it has seen |
@eernstg Thanks for clarification. Wasn't entirely sure from your previous comment. |
Agreed, this is my bug in the VM parser. I first had it right and then tried to improve error messages, totally forgetting that locals and members are allowed to be named "Function". A fix is under review: https://codereview.chromium.org/2673893002/ Thanks for the report. Note however that it will be tricky to use such locals and members, especially to call a closure named "Function". I would recommend using a different name, e.g. "Function_". |
We should probably cherry pick this fix to 1.22 |
This issue is not in 1.22, because the function syntax only starts being accepted in 1.23, I think. |
I'd say none of them.
…On Mon, Feb 6, 2017 at 9:16 AM, William Hesse ***@***.***> wrote:
This issue is not in 1.22, because the function syntax only starts being
accepted in 1.23, I think.
Do we need to cherry-pick all the relevant CLs, or none of them?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#28610 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIOIO28hE0dhGYkxjitjm79IUVeScntoks5rZtbCgaJpZM4L1S9S>
.
|
Right, milestone 1.23 was indicated for #27527 when this comment was written, confirming what Bill said. |
Agree, my bad I thought it went into 1.22
…On Mon, Feb 6, 2017 at 12:28 AM, Erik Ernst ***@***.***> wrote:
Right, milestone 1.23 was indicated for #27527
<#27527> when this comment
<#27527 (comment)>
was written, confirming what Bill said.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28610 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIO7zVc_8P5lGMrwbtngwKzQHvOs_ERkks5rZtmfgaJpZM4L1S9S>
.
|
The text was updated successfully, but these errors were encountered: