You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[error] It looks like not all of the members have a literal/constant 'value:String' declaration, namely: object Sun, object Mon, object Tue, object Wed, object Thu, object Fri, object Sat.
[error]
[error] This can happen if:
[error]
[error] -The aforementioned members have their `value` supplied by a variable, or otherwise defined as a method
[error]
[error] If none of the above apply to your case, it's likely you have discovered an issue withEnumeratum, so please file an issue :)
[error]
[error] valvalues: immutable.IndexedSeq[Day] = findValues
The text was updated successfully, but these errors were encountered:
Ugh, I think the reason this is happening is because we need to check for value being implemented as a literal on Day when expanding findValues, but in this case, it isn't and won't be: it's implemented as a literal on Weekday or Workday instead. Not 100% sure if this is something we can overcome in the macro itself without breaking guarantees about "literal-ness"; haven't really checked.
As workaround, maybe something like this might help
lloydmeta
changed the title
Compile error: not all of the members have a literal/constant 'value:String' declaration
[ValueEnum] When using inheritance, Compile error: not all of the members have a literal/constant 'value:String' declaration
Oct 6, 2020
Version:
1.6.1
The text was updated successfully, but these errors were encountered: