Skip to content

Function literal incorrectly parsed as block statement #49

Open

Description

@Hackerpilot

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.

Activity

  1. Hackerpilot commented on Mar 30, 2015

    @Hackerpilot
    CollaboratorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions