http://d.puremagic.com/issues/show_bug.cgi?id=10488
Kenji Hara <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Kenji Hara <[email protected]> 2013-06-27 20:50:38 PDT --- That was "accepts-invalid" bug. Even with 2.062, it didn't work properly. class Foo { static void instance (this T) () {} } void main () { import std.typetuple; foreach (T; TypeTuple!(Foo, const Foo, immutable Foo)) { pragma(msg, T); T.instance(); // fail to compile with const and immutable } } static member function does not have valid 'this' expression, so compiler cannot deduce TemplateThisParameter with IFTI. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
