Skip to content

Commit b790f7a

Browse files
RazvanN7dlang-bot
authored andcommitted
Revert "Fix Issue 22518 - return without scope/ref not specified"
1 parent 8b07224 commit b790f7a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

spec/function.dd

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,14 +1929,6 @@ class C
19291929
$(DDSUBLINK spec/expression, function_literals, lambdas) can deduce
19301930
the `return scope` attribute.)
19311931

1932-
$(P A parameter annotated `return` without `scope` or `ref`/`out` is equivalent to a `return scope` parameter.)
1933-
1934-
---
1935-
void retsc(return scope int* x);
1936-
void ret(return int* x);
1937-
static assert(is(typeof(retsc) == typeof(ret)));
1938-
---
1939-
19401932
$(H3 $(LNAME2 ref-return-scope-parameters, Ref Return Scope Parameters))
19411933

19421934
$(P Parameters marked as `ref return scope` come in two forms:)

0 commit comments

Comments
 (0)