|
1 |
| --- Error: tests/neg/enum-values.scala:19:45 ---------------------------------------------------------------------------- |
2 |
| -19 | val tags: Array[Tag[?]] = Tag.values // error |
| 1 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:28:45 ----------------------------------------------------------- |
| 2 | +28 | val tags: Array[Tag[?]] = Tag.values // error |
3 | 3 | | ^^^^^^^^^^
|
4 |
| - | Although class Tag is an enum, it has non-singleton cases, which prevents it from having a values array |
5 |
| --- Error: tests/neg/enum-values.scala:20:50 ---------------------------------------------------------------------------- |
6 |
| -20 | val listlikes: Array[ListLike[?]] = ListLike.values // error |
| 4 | + | value values is not a member of object example.Tag. |
| 5 | + | Although class Tag is an enum, it has non-singleton cases, |
| 6 | + | which prevents it from having a values array. |
| 7 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:29:50 ----------------------------------------------------------- |
| 8 | +29 | val listlikes: Array[ListLike[?]] = ListLike.values // error |
7 | 9 | | ^^^^^^^^^^^^^^^
|
8 |
| - | Although class ListLike is an enum, it has non-singleton cases, which prevents it from having a values array |
9 |
| --- Error: tests/neg/enum-values.scala:21:52 ---------------------------------------------------------------------------- |
10 |
| -21 | val typeCtorsK: Array[TypeCtorsK[?]] = TypeCtorsK.values // error |
| 10 | + | value values is not a member of object example.ListLike. |
| 11 | + | Although class ListLike is an enum, it has non-singleton cases, |
| 12 | + | which prevents it from having a values array. |
| 13 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:30:52 ----------------------------------------------------------- |
| 14 | +30 | val typeCtorsK: Array[TypeCtorsK[?]] = TypeCtorsK.values // error |
11 | 15 | | ^^^^^^^^^^^^^^^^^
|
12 |
| - | Although class TypeCtorsK is an enum, it has non-singleton cases, which prevents it from having a values array |
13 |
| --- Error: tests/neg/enum-values.scala:23:13 ---------------------------------------------------------------------------- |
14 |
| -23 | Tag.valueOf("Int") // error |
| 16 | + | value values is not a member of object example.TypeCtorsK. |
| 17 | + | Although class TypeCtorsK is an enum, it has non-singleton cases, |
| 18 | + | which prevents it from having a values array. |
| 19 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:32:6 ------------------------------------------------------------ |
| 20 | +32 | Tag.valueOf("Int") // error |
| 21 | + | ^^^^^^^^^^^ |
| 22 | + | value valueOf is not a member of object example.Tag. |
| 23 | + | Although class Tag is an enum, it has non-singleton cases, |
| 24 | + | which prevents it from having a valueOf lookup method. |
| 25 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:33:11 ----------------------------------------------------------- |
| 26 | +33 | ListLike.valueOf("EmptyListLike") // error |
| 27 | + | ^^^^^^^^^^^^^^^^ |
| 28 | + | value valueOf is not a member of object example.ListLike. |
| 29 | + | Although class ListLike is an enum, it has non-singleton cases, |
| 30 | + | which prevents it from having a valueOf lookup method. |
| 31 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:34:13 ----------------------------------------------------------- |
| 32 | +34 | TypeCtorsK.valueOf("Option") // error |
15 | 33 | | ^^^^^^^^^^^^^^^^^^
|
16 |
| - |Although class Tag is an enum, it has non-singleton cases, which prevents it from having a valueOf lookup method |
17 |
| --- Error: tests/neg/enum-values.scala:24:18 ---------------------------------------------------------------------------- |
18 |
| -24 | ListLike.valueOf("EmptyListLike") // error |
19 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
20 |
| - |Although class ListLike is an enum, it has non-singleton cases, which prevents it from having a valueOf lookup method |
21 |
| --- Error: tests/neg/enum-values.scala:25:20 ---------------------------------------------------------------------------- |
22 |
| -25 | TypeCtorsK.valueOf("Option") // error |
23 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
24 |
| - |Although class TypeCtorsK is an enum, it has non-singleton cases, which prevents it from having a valueOf lookup method |
| 34 | + | value valueOf is not a member of object example.TypeCtorsK. |
| 35 | + | Although class TypeCtorsK is an enum, it has non-singleton cases, |
| 36 | + | which prevents it from having a valueOf lookup method. |
| 37 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:36:12 ----------------------------------------------------------- |
| 38 | +36 | NotAnEnum.values // error |
| 39 | + | ^^^^^^^^^^^^^^^^ |
| 40 | + | value values is not a member of object example.NotAnEnum |
| 41 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:37:12 ----------------------------------------------------------- |
| 42 | +37 | NotAnEnum.valueOf("Foo") // error |
| 43 | + | ^^^^^^^^^^^^^^^^^ |
| 44 | + | value valueOf is not a member of object example.NotAnEnum |
0 commit comments