Skip to content

Commit c4edb10

Browse files
committed
Fix issue 22027 - Inout doesn't imply return
1 parent 4a4f7f3 commit c4edb10

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)