Thread overview | |||||
---|---|---|---|---|---|
|
December 30, 2010 [Issue 5392] New: Method with template this parameter doesn't work as a property | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5392 Summary: Method with template this parameter doesn't work as a property Product: D Version: D2 Platform: Other OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: doob@me.com --- Comment #0 from Jacob Carlborg <doob@me.com> 2010-12-30 14:07:00 PST --- The following code fails to compile: class A { T foo (this T) () { return new T; } } class B : A { } void main () { auto b = new B; B b2 = b.foo; } With the error message: main.d(16): Error: b.foo(this T) has no value This code works: auto b2 = b.foo; // using auto B b2 = b.foo(); // using parentheses -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 30, 2010 [Issue 5392] Method with template this parameter doesn't work as a property | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | http://d.puremagic.com/issues/show_bug.cgi?id=5392 Stanislav Blinov <stanislav.blinov@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stanislav.blinov@gmail.com --- Comment #1 from Stanislav Blinov <stanislav.blinov@gmail.com> 2010-12-30 14:44:11 PST --- Similar things have been reported before, though I'm not sure how close the relation is: http://d.puremagic.com/issues/show_bug.cgi?id=4501 http://d.puremagic.com/issues/show_bug.cgi?id=2691 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 31, 2012 [Issue 5392] Method with template this parameter doesn't work as a property | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | http://d.puremagic.com/issues/show_bug.cgi?id=5392 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2012-05-30 21:51:33 PDT --- Works in 2.060head. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation