Skip to content

Commit 0f3dfc2

Browse files
committed
Merge branch 'language-reference-stable'
2 parents 1ea177d + d0182b4 commit 0f3dfc2

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)