[Issue 6454] @property doesn't need return type
https://issues.dlang.org/show_bug.cgi?id=6454 Nick Treleavenchanged: What|Removed |Added Status|NEW |RESOLVED CC||n...@geany.org Resolution|--- |INVALID --- Comment #4 from Nick Treleaven --- The spec has been updated to list `Property` under `StorageClass`: https://dlang.org/spec/declaration.html#StorageClass --
[Issue 6454] @property doesn't need return type
https://d.puremagic.com/issues/show_bug.cgi?id=6454 Infiltrator lt.infiltra...@gmail.com changed: What|Removed |Added CC||lt.infiltra...@gmail.com --- Comment #3 from Infiltrator lt.infiltra...@gmail.com 2014-03-19 21:14:54 PDT --- So where are we with this? Is this a feature not a bug? -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6454] @property doesn't need return type
http://d.puremagic.com/issues/show_bug.cgi?id=6454 --- Comment #2 from Kenji Hara k.hara...@gmail.com 2011-09-21 06:40:58 PDT --- (In reply to comment #0) For @property, the return type is inferred even without the auto return type: struct S { @property p() { // missing bool/auto return true; } } void main() { S s; static assert(is(typeof(s.p) == bool)); // ok } Maybe this is expected feature, but spec does not describe it. http://d-programming-language.org/declaration.html Decl: StorageClasses Decl BasicType Declarators ; BasicType Declarator FunctionBody AutoDeclaration (In reply to comment #1) This also breaks creation of import files. Notice the double @property: // D import file generated from 't.d' struct S { @property @property p() { return true; } } void main(); This is same as issue 6360. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6454] @property doesn't need return type
http://d.puremagic.com/issues/show_bug.cgi?id=6454 --- Comment #1 from simendsjo simend...@gmail.com 2011-08-08 03:25:06 PDT --- This also breaks creation of import files. Notice the double @property: // D import file generated from 't.d' struct S { @property @property p() { return true; } } void main(); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---