|
| 1 | +-- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:9:10 ----------------------------------------------- |
| 2 | +9 |def t1a = try 1 // warning (parser) |
| 3 | + | ^^^^^ |
| 4 | + | A try without catch or finally is equivalent to putting |
| 5 | + | its body in a block; no exceptions are handled. |
| 6 | + |
| 7 | +longer explanation available when compiling with `-explain` |
| 8 | +-- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:21:26 ---------------------------------------------- |
| 9 | +21 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id) |
| 10 | + | ^^^^^ |
| 11 | + | A try without catch or finally is equivalent to putting |
| 12 | + | its body in a block; no exceptions are handled. |
| 13 | + |
| 14 | +longer explanation available when compiling with `-explain` |
| 15 | +-- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:23:28 ---------------------------------------------- |
| 16 | +23 |@nowarn("verbose") def t5 = try 1 // warning with details |
| 17 | + | ^^^^^ |
| 18 | + | A try without catch or finally is equivalent to putting |
| 19 | + | its body in a block; no exceptions are handled. |
| 20 | +Matching filters for @nowarn or -Wconf: |
| 21 | + - id=E0 |
| 22 | + - name=EmptyCatchOrFinallyBlock |
| 23 | + |
| 24 | +longer explanation available when compiling with `-explain` |
| 25 | +-- [E129] Potential Issue Warning: tests/neg-custom-args/nowarn/nowarn.scala:13:11 ------------------------------------- |
| 26 | +13 |def t2 = { 1; 2 } // warning (the invalid nowarn doesn't silence anything) |
| 27 | + | ^ |
| 28 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 29 | + |
| 30 | +longer explanation available when compiling with `-explain` |
| 31 | +-- Warning: tests/neg-custom-args/nowarn/nowarn.scala:12:8 ------------------------------------------------------------- |
| 32 | +12 |@nowarn("wat?") // warning (typer, invalid filter) |
| 33 | + | ^^^^^^ |
| 34 | + | Invalid message filter |
| 35 | + | unknown filter: wat? |
| 36 | +-- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:27:10 ------------------------------------------------ |
| 37 | +27 |def t6a = f // warning (refchecks, deprecation) |
| 38 | + | ^ |
| 39 | + | method f is deprecated |
| 40 | +-- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:30:30 ------------------------------------------------ |
| 41 | +30 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation) |
| 42 | + | ^ |
| 43 | + | method f is deprecated |
| 44 | +-- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:37:10 ------------------------------------------------ |
| 45 | +37 |def t7c = f: // warning (deprecation) |
| 46 | + | ^ |
| 47 | + | method f is deprecated |
| 48 | +-- Unchecked Warning: tests/neg-custom-args/nowarn/nowarn.scala:43:7 --------------------------------------------------- |
| 49 | +43 | case _: List[Int] => 0 // warning (patmat, unchecked) |
| 50 | + | ^ |
| 51 | + | the type test for List[Int] cannot be checked at runtime |
| 52 | +-- Error: tests/neg-custom-args/nowarn/nowarn.scala:21:1 --------------------------------------------------------------- |
| 53 | +21 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id) |
| 54 | + |^^^^^^^^^^^^^^^ |
| 55 | + |@nowarn annotation does not suppress any warnings |
| 56 | +-- Error: tests/neg-custom-args/nowarn/nowarn.scala:30:1 --------------------------------------------------------------- |
| 57 | +30 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation) |
| 58 | + |^^^^^^^^^^^^^^^^^^^ |
| 59 | + |@nowarn annotation does not suppress any warnings |
| 60 | +-- Error: tests/neg-custom-args/nowarn/nowarn.scala:38:3 --------------------------------------------------------------- |
| 61 | +38 | @nowarn("msg=fish") // error (unused nowarn) |
| 62 | + | ^^^^^^^^^^^^^^^^^^^ |
| 63 | + | @nowarn annotation does not suppress any warnings |
0 commit comments