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