|
1 | | --- Warning: tests/neg-scalajs/enumeration-warnings.scala:6:4 ----------------------------------------------------------- |
2 | | -6 | Value // warn |
| 1 | +-- Error: tests/neg-scalajs/enumeration-warnings.scala:6:4 ------------------------------------------------------------- |
| 2 | +6 | Value // error |
3 | 3 | | ^^^^^ |
4 | 4 | | Could not transform call to scala.Enumeration.Value. |
5 | 5 | | The resulting program is unlikely to function properly as this operation requires reflection. |
6 | | --- Warning: tests/neg-scalajs/enumeration-warnings.scala:10:9 ---------------------------------------------------------- |
7 | | -10 | Value(4) // warn |
| 6 | +-- Error: tests/neg-scalajs/enumeration-warnings.scala:10:9 ------------------------------------------------------------ |
| 7 | +10 | Value(4) // error |
8 | 8 | | ^^^^^^^^ |
9 | 9 | | Could not transform call to scala.Enumeration.Value. |
10 | 10 | | The resulting program is unlikely to function properly as this operation requires reflection. |
11 | | --- Warning: tests/neg-scalajs/enumeration-warnings.scala:15:15 --------------------------------------------------------- |
12 | | -15 | val a = Value(null) // warn |
| 11 | +-- Error: tests/neg-scalajs/enumeration-warnings.scala:15:15 ----------------------------------------------------------- |
| 12 | +15 | val a = Value(null) // error |
13 | 13 | | ^^^^^^^^^^^ |
14 | 14 | | Passing null as name to scala.Enumeration.Value requires reflection at run-time. |
15 | 15 | | The resulting program is unlikely to function properly. |
16 | | --- Warning: tests/neg-scalajs/enumeration-warnings.scala:16:15 --------------------------------------------------------- |
17 | | -16 | val b = Value(10, null) // warn |
| 16 | +-- Error: tests/neg-scalajs/enumeration-warnings.scala:16:15 ----------------------------------------------------------- |
| 17 | +16 | val b = Value(10, null) // error |
18 | 18 | | ^^^^^^^^^^^^^^^ |
19 | 19 | | Passing null as name to scala.Enumeration.Value requires reflection at run-time. |
20 | 20 | | The resulting program is unlikely to function properly. |
21 | | --- Warning: tests/neg-scalajs/enumeration-warnings.scala:20:10 --------------------------------------------------------- |
22 | | -20 | val a = new Val // warn |
| 21 | +-- Error: tests/neg-scalajs/enumeration-warnings.scala:20:10 ----------------------------------------------------------- |
| 22 | +20 | val a = new Val // error |
23 | 23 | | ^^^^^^^ |
24 | 24 | | Calls to the non-string constructors of scala.Enumeration.Val require reflection at run-time. |
25 | 25 | | The resulting program is unlikely to function properly. |
26 | | --- Warning: tests/neg-scalajs/enumeration-warnings.scala:21:10 --------------------------------------------------------- |
27 | | -21 | val b = new Val(10) // warn |
| 26 | +-- Error: tests/neg-scalajs/enumeration-warnings.scala:21:10 ----------------------------------------------------------- |
| 27 | +21 | val b = new Val(10) // error |
28 | 28 | | ^^^^^^^^^^^ |
29 | 29 | | Calls to the non-string constructors of scala.Enumeration.Val require reflection at run-time. |
30 | 30 | | The resulting program is unlikely to function properly. |
31 | | --- Warning: tests/neg-scalajs/enumeration-warnings.scala:25:10 --------------------------------------------------------- |
32 | | -25 | val a = new Val(null) // warn |
| 31 | +-- Error: tests/neg-scalajs/enumeration-warnings.scala:25:10 ----------------------------------------------------------- |
| 32 | +25 | val a = new Val(null) // error |
33 | 33 | | ^^^^^^^^^^^^^ |
34 | 34 | | Passing null as name to a constructor of scala.Enumeration.Val requires reflection at run-time. |
35 | 35 | | The resulting program is unlikely to function properly. |
36 | | --- Warning: tests/neg-scalajs/enumeration-warnings.scala:26:10 --------------------------------------------------------- |
37 | | -26 | val b = new Val(10, null) // warn |
| 36 | +-- Error: tests/neg-scalajs/enumeration-warnings.scala:26:10 ----------------------------------------------------------- |
| 37 | +26 | val b = new Val(10, null) // error |
38 | 38 | | ^^^^^^^^^^^^^^^^^ |
39 | 39 | | Passing null as name to a constructor of scala.Enumeration.Val requires reflection at run-time. |
40 | 40 | | The resulting program is unlikely to function properly. |
41 | | --- Warning: tests/neg-scalajs/enumeration-warnings.scala:30:31 --------------------------------------------------------- |
42 | | -30 | protected class Val1 extends Val // warn |
| 41 | +-- Error: tests/neg-scalajs/enumeration-warnings.scala:30:31 ----------------------------------------------------------- |
| 42 | +30 | protected class Val1 extends Val // error |
43 | 43 | | ^^^ |
44 | 44 | | Calls to the non-string constructors of scala.Enumeration.Val require reflection at run-time. |
45 | 45 | | The resulting program is unlikely to function properly. |
46 | | --- Warning: tests/neg-scalajs/enumeration-warnings.scala:31:31 --------------------------------------------------------- |
47 | | -31 | protected class Val2 extends Val(1) // warn |
| 46 | +-- Error: tests/neg-scalajs/enumeration-warnings.scala:31:31 ----------------------------------------------------------- |
| 47 | +31 | protected class Val2 extends Val(1) // error |
48 | 48 | | ^^^^^^ |
49 | 49 | | Calls to the non-string constructors of scala.Enumeration.Val require reflection at run-time. |
50 | 50 | | The resulting program is unlikely to function properly. |
51 | | --- Warning: tests/neg-scalajs/enumeration-warnings.scala:35:31 --------------------------------------------------------- |
52 | | -35 | protected class Val1 extends Val(null) // warn |
| 51 | +-- Error: tests/neg-scalajs/enumeration-warnings.scala:35:31 ----------------------------------------------------------- |
| 52 | +35 | protected class Val1 extends Val(null) // error |
53 | 53 | | ^^^^^^^^^ |
54 | 54 | | Passing null as name to a constructor of scala.Enumeration.Val requires reflection at run-time. |
55 | 55 | | The resulting program is unlikely to function properly. |
56 | | --- Warning: tests/neg-scalajs/enumeration-warnings.scala:36:31 --------------------------------------------------------- |
57 | | -36 | protected class Val2 extends Val(1, null) // warn |
| 56 | +-- Error: tests/neg-scalajs/enumeration-warnings.scala:36:31 ----------------------------------------------------------- |
| 57 | +36 | protected class Val2 extends Val(1, null) // error |
58 | 58 | | ^^^^^^^^^^^^ |
59 | 59 | | Passing null as name to a constructor of scala.Enumeration.Val requires reflection at run-time. |
60 | 60 | | The resulting program is unlikely to function properly. |
61 | | -No warnings can be incurred under -Werror. |
0 commit comments