|
| 1 | +-- [E176] Potential Issue Warning: tests/warn/i18559.scala:63:4 -------------------------------------------------------- |
| 2 | +63 | improved // warn |
| 3 | + | ^^^^^^^^ |
| 4 | + | unused value of type (improved : => scala.concurrent.Future[Int]) |
| 5 | +-- [E175] Potential Issue Warning: tests/warn/i18559.scala:51:35 ------------------------------------------------------- |
| 6 | +51 | firstThing().map(_ => secondThing()) // warn |
| 7 | + | ^^^^^^^^^^^^^ |
| 8 | + | discarded non-Unit value of type Either[Failed, Unit] |
| 9 | +-- [E175] Potential Issue Warning: tests/warn/i18559.scala:54:35 ------------------------------------------------------- |
| 10 | +54 | firstThing().map(_ => secondThing()) // warn |
| 11 | + | ^^^^^^^^^^^^^ |
| 12 | + | discarded non-Unit value of type Either[Failed, Unit] |
| 13 | +-- Warning: tests/warn/i18559.scala:4:6 -------------------------------------------------------------------------------- |
| 14 | +4 | var e3 = 2 // warn |
| 15 | + | ^^ |
| 16 | + | unused local definition |
| 17 | +-- Warning: tests/warn/i18559.scala:8:28 ------------------------------------------------------------------------------- |
| 18 | +8 | import collection.mutable.Set // warn |
| 19 | + | ^^^ |
| 20 | + | unused import |
| 21 | +-- Warning: tests/warn/i18559.scala:9:33 ------------------------------------------------------------------------------- |
| 22 | +9 | import collection.mutable.{Map => MutMap} // warn |
| 23 | + | ^^^^^^^^^^^^^ |
| 24 | + | unused import |
| 25 | +-- Warning: tests/warn/i18559.scala:10:28 ------------------------------------------------------------------------------ |
| 26 | +10 | import collection.mutable._ // warn |
| 27 | + | ^ |
| 28 | + | unused import |
| 29 | +-- Warning: tests/warn/i18559.scala:13:28 ------------------------------------------------------------------------------ |
| 30 | +13 | import collection.mutable._ // warn |
| 31 | + | ^ |
| 32 | + | unused import |
| 33 | +-- [E030] Match case Unreachable Warning: tests/warn/i18559.scala:31:10 ------------------------------------------------ |
| 34 | +31 | case Sum(a@S(_),Z) => Z // warn |
| 35 | + | ^^^^^^^^^^^^^ |
| 36 | + | Unreachable case |
| 37 | +-- [E030] Match case Unreachable Warning: tests/warn/i18559.scala:32:10 ------------------------------------------------ |
| 38 | +32 | case Sum(a@S(_),Z) => a // warn unreachable |
| 39 | + | ^^^^^^^^^^^^^ |
| 40 | + | Unreachable case |
| 41 | +-- [E030] Match case Unreachable Warning: tests/warn/i18559.scala:33:10 ------------------------------------------------ |
| 42 | +33 | case Sum(a@S(b@S(_)), Z) => a // warn |
| 43 | + | ^^^^^^^^^^^^^^^^^^^ |
| 44 | + | Unreachable case |
| 45 | +-- [E030] Match case Unreachable Warning: tests/warn/i18559.scala:34:10 ------------------------------------------------ |
| 46 | +34 | case Sum(a@S(b@S(_)), Z) => a // warn |
| 47 | + | ^^^^^^^^^^^^^^^^^^^ |
| 48 | + | Unreachable case |
| 49 | +-- [E030] Match case Unreachable Warning: tests/warn/i18559.scala:35:10 ------------------------------------------------ |
| 50 | +35 | case Sum(a@S(b@(S(_))), Z) => Sum(a,b) // warn unreachable |
| 51 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 52 | + | Unreachable case |
| 53 | +-- [E121] Pattern Match Warning: tests/warn/i18559.scala:37:7 ---------------------------------------------------------- |
| 54 | +37 | case _ => Z // warn unreachable |
| 55 | + | ^ |
| 56 | + | Unreachable case except for null (if this is intentional, consider writing case null => instead). |
0 commit comments