Skip to content

Commit d0182b4

Browse files
authored
Merge pull request #15298 from unkarjedy/patch-8
update nonlocal-returns.md - add a note about -source:future compiler option
2 parents 2f09495 + 8b0ef07 commit d0182b4

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)