aBothe / Mono-D

D Add-In for MonoDevelop
http://wiki.dlang.org/Mono-D
Other
113 stars 26 forks source link

Mixin-Resolution Failure #624

Open default0 opened 9 years ago

default0 commented 9 years ago

Mixin Resolution Fails in this case:

mixin("int " ~ getStr(105) ~ ";");
static string getStr(int first) { return cast(char)(first) ~ "nteger"; }

Note however, that the very similar case (without a parameter) works fine:

mixin("int " ~ getStr() ~ ";");
static string getStr() { return cast(char)(105) ~ "nteger"; }

So the issue is the parameter not being tracked correctly.