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
results in It looks like not all of the members have a literal/constant 'value:String' declaration, namely: object Test2. even though Test2 has a constant value for value. Note that in this case Test1 works fine.
results in It looks like not all of the members have a literal/constant 'value:String' declaration, namely: object Test1, object Test2. even though both objects have unique constant values for value, and no variables or methods anywhere.
Example 3:
sealed abstract class Entry(val value: String)(implicit blah: String) extends StringEnumEntry
object Enum extends StringEnum[Entry] {
implicit val blah: String = ""
case object Test1 extends Entry("test1")
case object Test2 extends Entry("test2")(blah)
override def values: IndexedSeq[Entry] = findValues
}
results in It looks like not all of the members have a literal/constant 'value:String' declaration, namely: object Test2. even though Test2 has a constant value for value. Note also that the definitions are equivalent after implicit resolution.
The text was updated successfully, but these errors were encountered:
Expected:
ValueEnumEntry
implementations compile if they have a literalvalue
parameter.Actual:
ValueEnumEntry
implementations with multiple parameter lists sometimes don't compile even when they have a literalvalue
parameterExample 1:
results in
It looks like not all of the members have a literal/constant 'value:String' declaration, namely: object Test2.
even thoughTest2
has a constant value forvalue
. Note that in this caseTest1
works fine.Example 2:
results in
It looks like not all of the members have a literal/constant 'value:String' declaration, namely: object Test1, object Test2.
even though both objects have unique constant values forvalue
, and no variables or methods anywhere.Example 3:
results in
It looks like not all of the members have a literal/constant 'value:String' declaration, namely: object Test2.
even thoughTest2
has a constant value forvalue
. Note also that the definitions are equivalent after implicit resolution.The text was updated successfully, but these errors were encountered: