DDT-IDE / DDT

DDT is an Eclipse-based IDE for the D programming language:
http://ddt-ide.github.io/
101 stars 16 forks source link

mixin parsing as expression #65

Closed NCrashed closed 10 years ago

NCrashed commented 10 years ago

I am a big fan of playing around with mixins, I found that following code is valid for compiler and fails at DDT parser:

import std.conv;

int val1;

string getVal(size_t i)
{
    return text("val",i); 
}

void main()
{
    mixin(getVal(1)) = 10; // Multiple markers at this line
//  - Unexpected token "=", while trying to parse 
//   Statement.
//  - Syntax error on token ")", expected SEMICOLON 
//   after.
}

DDT version: 0.10.1.v201405021652 platform: 3.14.9-200.fc20.x86_64 Checked DMD: 2.065 and 2.066-b2