[Issue 14913] New: The return attribute cannot be on the left side of a function declaration
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Aug 12 16:57:08 PDT 2015
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 at puremagic.com
Reporter: monkeyworks12 at hotmail.com
struct Test
{
int n;
//Error: declaration expected, not 'return'
return ref int test()
{
return n;
}
}
--
More information about the Digitalmars-d-bugs
mailing list