|
| 1 | +-- [E008] Not Found Error: tests/neg/enum-values.scala:32:45 ----------------------------------------------------------- |
| 2 | +32 | val tags: Array[Tag[?]] = Tag.values // error |
| 3 | + | ^^^^^^^^^^ |
| 4 | + | value values is not a member of object example.Tag. |
| 5 | + | Although class Tag is an enum, it has non-singleton cases, |
| 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 |
| 12 | + | ^^^^^^^^^^^^^^^ |
| 13 | + | value values is not a member of object example.ListLike. |
| 14 | + | Although class ListLike is an enum, it has non-singleton cases, |
| 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 |
| 21 | + | ^^^^^^^^^^^^^^^^^ |
| 22 | + | value values is not a member of object example.TypeCtorsK. |
| 23 | + | Although class TypeCtorsK is an enum, it has non-singleton cases, |
| 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 |
| 30 | + | ^^^^^^^^^^^ |
| 31 | + | value valueOf is not a member of object example.Tag. |
| 32 | + | Although class Tag is an enum, it has non-singleton cases, |
| 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 |
| 36 | + | ^^^^^^^^^^^^^^^^ |
| 37 | + | value valueOf is not a member of object example.ListLike - did you mean ListLike.valuef? |
| 38 | + | Although class ListLike is an enum, it has non-singleton cases, |
| 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 |
| 42 | + | ^^^^^^^^^^^^^^^^^^ |
| 43 | + | value valueOf is not a member of object example.TypeCtorsK. |
| 44 | + | Although class TypeCtorsK is an enum, it has non-singleton cases, |
| 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 |
| 53 | + | ^^^^^^^^^^^^^^^^ |
| 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 |
| 60 | + | ^^^^^^^^^^^^^^^^^ |
| 61 | + | value valueOf is not a member of object example.NotAnEnum |
0 commit comments