Skip to content

Commit f6e630a

Browse files
authored
Merge pull request #3259 from dkorpel/separate-inout-return
Fix issue 22027 - `inout` doesn't imply return
2 parents 4a4f7f3 + c4edb10 commit f6e630a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

spec/function.dd

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,15 +1837,6 @@ void venus()
18371837
}
18381838
---
18391839

1840-
$(P `inout ref` parameters imply the `return` attribute.)
1841-
1842-
---
1843-
inout(int)* neptune(inout ref int i)
1844-
{
1845-
return &i; // ok
1846-
}
1847-
---
1848-
18491840
$(H3 $(LNAME2 scope-parameters, Scope Parameters))
18501841

18511842
$(P A `scope` parameter of reference type must not escape the function call

0 commit comments

Comments
 (0)