http://d.puremagic.com/issues/show_bug.cgi?id=10485
Summary: can not distinguish method call in string mixin!
Product: D
Version: D2
Platform: All
OS/Version: Windows
Status: NEW
Severity: blocker
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from changlon <[email protected]> 2013-06-26 21:20:23 PDT ---
code:
---------------
class TestClass{
void call(){
}
}
mixin template test(string name){
mixin("scope " ~ name ~ " = new TestClass;" );
mixin( name ~ ".call();" );
}
void main(){
mixin test!("var");
var.call();
}
---------------
error:
--------------
debug.d(10): Error: function declaration without return type. (Note that
constructors are always named 'this')
debug.d(10): Error: no identifier for declarator var.call()
debug.d(10): Error: function debug.TestClass.call is used as a type
debug.d(14): Error: mixin debug.main.test!("var") error instantiating
--------------
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------