Skip to content

Commit 8b0ef07

Browse files
authored
update nonlocal-returns.md - add a note about -source:future compiler option
1 parent 2f09495 commit 8b0ef07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
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)