-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
//> using options -source:future-migration -deprecation -Werror | ||
scala> import scala.util._ | ||
-- Error: ---------------------------------------------------------------------- | ||
-- Migration Warning: ---------------------------------------------------------- | ||
1 | import scala.util._ | ||
| ^ | ||
| `_` is no longer supported for a wildcard import; use `*` instead | ||
|
||
No warnings can be incurred under -Werror. | ||
1 warning found | ||
1 error found | ||
scala> extension (x: Int) def foo(y: Int) = x + y | ||
def foo(x: Int)(y: Int): Int | ||
|
||
scala> 2 foo 4 | ||
-- Error: ---------------------------------------------------------------------- | ||
-- Migration Warning: ---------------------------------------------------------- | ||
1 | 2 foo 4 | ||
| ^^^ | ||
|Alphanumeric method foo is not declared infix; it should not be used as infix operator. | ||
|Instead, use method syntax .foo(...) or backticked identifier `foo`. | ||
1 error found | ||
No warnings can be incurred under -Werror. | ||
1 warning found | ||
1 error found |