Thread overview | |||||
---|---|---|---|---|---|
|
July 22, 2011 [Issue 6360] New: @property is doubled in di files when used with auto | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6360 Summary: @property is doubled in di files when used with auto Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: jmdavisProg@gmx.com --- Comment #0 from Jonathan M Davis <jmdavisProg@gmx.com> 2011-07-21 22:11:41 PDT --- As an example, take any property in core.time - say @property long weeks() const pure nothrow { return get!"weeks"(); } Now make it return auto instead of long. Rebuild druntime, and time.di will have this for weeks: auto @property const pure nothrow @property weeks() { return get!("weeks")(); } Notice that @property is doubled. This will cause compilation errors for Phobos such as ../druntime/import/core/time.di(136): redundant storage class identifier However, if you change it back to long, you get @property const pure nothrow long weeks() { return get!("weeks")(); } So, @property and auto are not getting along when .di files are generated. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 22, 2011 [Issue 6360] @property is doubled in di files when used with auto | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | http://d.puremagic.com/issues/show_bug.cgi?id=6360 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2011-09-22 07:34:16 PDT --- https://github.com/D-Programming-Language/dmd/pull/404 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 25, 2011 [Issue 6360] @property is doubled in di files when used with auto | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | http://d.puremagic.com/issues/show_bug.cgi?id=6360 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-09-24 21:02:36 PDT --- https://github.com/D-Programming-Language/dmd/commit/15f54382fb89671c1c640d8b7c11da3b3b923aa1 -- 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