digitalmars.D.bugs - [Issue 14913] New: The return attribute cannot be on the left side
- via Digitalmars-d-bugs (24/24) Aug 12 2015 https://issues.dlang.org/show_bug.cgi?id=14913
https://issues.dlang.org/show_bug.cgi?id=14913 Issue ID: 14913 Summary: The return attribute cannot be on the left side of a function declaration Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: monkeyworks12 hotmail.com struct Test { int n; //Error: declaration expected, not 'return' return ref int test() { return n; } } --
Aug 12 2015