Skip to content

Commit

Permalink
Merge pull request scala#15300 from lampepfl/language-reference-backport
Browse files Browse the repository at this point in the history
Backport changes from stable documentation branch
  • Loading branch information
julienrf authored May 31, 2022
2 parents d6e3d12 + 0f3dfc2 commit 040d141
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/_docs/reference/dropped-features/nonlocal-returns.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ extension [T](xs: List[T])
val xs = List(1, 2, 3, 4, 5)
assert(xs.has(2) == xs.contains(2))
```

Note: compiler produces deprecation error on nonlocal returns only with `-source:future` option.

0 comments on commit 040d141

Please sign in to comment.