[Issue 10485] can not distinguish method call in string mixin!
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 27 06:50:58 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10485
--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-27 06:50:57 PDT ---
(In reply to comment #1)
> this seems is a different but related bug:
>
> code:
> ----------------------
> class TestClass{}
> mixin template test(string name){
> mixin("scope " ~ name ~ " = new TestClass;" );
> }
> void main(){
> mixin test!("var");
> }
> ---------------------
It seems to be a bug related to scope, if you change it to 'auto' it will work.
You could file this as a separate bug, but since scope is guaranteed to go away
soon in a future release chances are low that it will be fixed.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list