Skip to content
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

Function literal incorrectly parsed as block statement #49

Open
Hackerpilot opened this issue Mar 30, 2015 · 1 comment
Open

Function literal incorrectly parsed as block statement #49

Hackerpilot opened this issue Mar 30, 2015 · 1 comment
Labels

Comments

@Hackerpilot
Copy link
Collaborator

The following ExpressionStatement containing a function literal gets parsed as a block statement.

import std.stdio;
void main()
{
    { writeln("test"); };
}

Note: DMD gets this wrong as well.

@Hackerpilot
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant