Skip to content

Commit 040d141

Browse files
authored
Merge pull request #15300 from lampepfl/language-reference-backport
Backport changes from stable documentation branch
2 parents d6e3d12 + 0f3dfc2 commit 040d141

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/_docs/reference/dropped-features/nonlocal-returns.md

+2
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ extension [T](xs: List[T])
2525
val xs = List(1, 2, 3, 4, 5)
2626
assert(xs.has(2) == xs.contains(2))
2727
```
28+
29+
Note: compiler produces deprecation error on nonlocal returns only with `-source:future` option.

0 commit comments

Comments
 (0)