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
The text was updated successfully, but these errors were encountered:
mrdziuban
changed the title
Members of an enums nested in a class are not discovered in scala 3
Members of enums nested in a class are not discovered in scala 3
Nov 15, 2023
I'm actually surprised that nesting enums inside a class this is even a thing, as it brings to mind the question of things like whether the enum is owned by each instance of a class or whether it's "static". EDIT for clarity: should (new Test).Foo.a == (new Test).Foo.a???
In any case, I'm open to considering this something to "fix" for the sake of BWC with Scala 2, but also open to saying "no" to this and adding, say, a compiler warning for this kind of situation.
In this example
case object a
is discovered byfindValues
on scala 2, but is not on scala 3https://scastie.scala-lang.org/mrdziuban/UeKyIrUZTi2ulDq9U89lmw/5
The text was updated successfully, but these errors were encountered: