On 2015-04-13 22:40, biozic wrote:

For example:
version (all)
     struct foo { int i; }

     auto bar()
         static if (true) {}
         static assert(true);
         return foo(1);

In the body of the bar function, `if`, `assert` and `foo` are parsed as
a method definition and appear in the symbol tree.

I have fixed this issue now. It's currently in "master", it has not been pushed to users yet.

The issue was a silly mistake by me, I had forgot to add optional whitespace in the beginning of the rule matching static if/assert.

/Jacob Carlborg

Reply via email to