|
1 | | --- [E008] Not Found Error: tests/neg/enum-values.scala:28:45 ----------------------------------------------------------- |
2 | | -28 | val tags: Array[Tag[?]] = Tag.values // error |
| 1 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:32:45 ----------------------------------------------------------- |
| 2 | +32 | val tags: Array[Tag[?]] = Tag.values // error |
3 | 3 | | ^^^^^^^^^^ |
4 | 4 | | value values is not a member of object example.Tag. |
5 | 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 |
| 6 | + | meaning a values array is not defined. |
| 7 | + | An extension method was tried, but could not be fully constructed: |
| 8 | + | |
| 9 | + | example.Extensions.extension_values(Tag) |
| 10 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:33:50 ----------------------------------------------------------- |
| 11 | +33 | val listlikes: Array[ListLike[?]] = ListLike.values // error |
9 | 12 | | ^^^^^^^^^^^^^^^ |
10 | 13 | | value values is not a member of object example.ListLike. |
11 | 14 | | 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 |
| 15 | + | meaning a values array is not defined. |
| 16 | + | An extension method was tried, but could not be fully constructed: |
| 17 | + | |
| 18 | + | example.Extensions.extension_values(ListLike) |
| 19 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:34:52 ----------------------------------------------------------- |
| 20 | +34 | val typeCtorsK: Array[TypeCtorsK[?]] = TypeCtorsK.values // error |
15 | 21 | | ^^^^^^^^^^^^^^^^^ |
16 | 22 | | value values is not a member of object example.TypeCtorsK. |
17 | 23 | | 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 |
| 24 | + | meaning a values array is not defined. |
| 25 | + | An extension method was tried, but could not be fully constructed: |
| 26 | + | |
| 27 | + | example.Extensions.extension_values(TypeCtorsK) |
| 28 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:36:6 ------------------------------------------------------------ |
| 29 | +36 | Tag.valueOf("Int") // error |
21 | 30 | | ^^^^^^^^^^^ |
22 | 31 | | value valueOf is not a member of object example.Tag. |
23 | 32 | | 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 |
| 33 | + | meaning a valueOf lookup method is not defined |
| 34 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:37:11 ----------------------------------------------------------- |
| 35 | +37 | ListLike.valueOf("EmptyListLike") // error |
27 | 36 | | ^^^^^^^^^^^^^^^^ |
28 | | - | value valueOf is not a member of object example.ListLike. |
| 37 | + | value valueOf is not a member of object example.ListLike - did you mean ListLike.valuef? |
29 | 38 | | 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 |
| 39 | + | meaning a valueOf lookup method is not defined |
| 40 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:38:13 ----------------------------------------------------------- |
| 41 | +38 | TypeCtorsK.valueOf("Option") // error |
33 | 42 | | ^^^^^^^^^^^^^^^^^^ |
34 | 43 | | value valueOf is not a member of object example.TypeCtorsK. |
35 | 44 | | 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 |
| 45 | + | meaning a valueOf lookup method is not defined, but could be made available as an extension method. |
| 46 | + | |
| 47 | + | The following import might fix the problem: |
| 48 | + | |
| 49 | + | import example.UnimportedExtensions.valueOf |
| 50 | + | |
| 51 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:40:12 ----------------------------------------------------------- |
| 52 | +40 | NotAnEnum.values // error |
39 | 53 | | ^^^^^^^^^^^^^^^^ |
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 |
| 54 | + | value values is not a member of object example.NotAnEnum. |
| 55 | + | An extension method was tried, but could not be fully constructed: |
| 56 | + | |
| 57 | + | example.Extensions.extension_values(NotAnEnum) |
| 58 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:41:12 ----------------------------------------------------------- |
| 59 | +41 | NotAnEnum.valueOf("Foo") // error |
43 | 60 | | ^^^^^^^^^^^^^^^^^ |
44 | 61 | | value valueOf is not a member of object example.NotAnEnum |
0 commit comments