[Issue 10485] New: can not distinguish method call in string mixin!
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 26 21:20:27 PDT 2013
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: nobody at puremagic.com
ReportedBy: changlon at gmail.com
--- Comment #0 from changlon <changlon at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list