digitalmars.D.bugs - [Issue 4531] New: [2.046] No constructors with variable type list
- d-bugmail puremagic.com (39/39) Jul 29 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4531
- d-bugmail puremagic.com (12/12) Feb 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=4531
http://d.puremagic.com/issues/show_bug.cgi?id=4531 Summary: [2.046] No constructors with variable type list Product: D Version: D2 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: joshuareusch web.de For example: --- class Output { this(T...)(T msg) { writeln(msg); } } new Output("Hello, ", 42); --- ends in an "Error: no constructor for Output". If you make it as an Exception: --- class MyError : Exception { this(T...)(T msg) { super(text(msg)); } } --- It ends in "Error: constructor test.MyError.this conflicts with template test.MyError.__ctor(T...)". Same with Throwable or Error as base class (probably with all others, too). I have this not tested in other configurations ... Ps: Sorry for bad english :) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 29 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4531 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kennytm gmail.com Resolution| |DUPLICATE *** This issue has been marked as a duplicate of issue 435 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 09 2012