Closed NCrashed closed 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
I am a big fan of playing around with mixins, I found that following code is valid for compiler and fails at DDT parser:
DDT version: 0.10.1.v201405021652 platform: 3.14.9-200.fc20.x86_64 Checked DMD: 2.065 and 2.066-b2