-
Notifications
You must be signed in to change notification settings - Fork 1.1k
A locally defined scala.Enumeration blows up at runtime #11052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
A slightly simpler example: object Test {
def main(args: Array[String]): Unit = {
object Weekdays extends Enumeration {
val Mon, Tue, Wed, Thu, Fri, Sat, Sun = Value
}
println(Weekdays.Mon.toString)
}
} Scala 2.13.4 sets the
|
anatoliykmetyuk
added a commit
to dotty-staging/dotty
that referenced
this issue
Jun 9, 2022
nicolasstucki
added a commit
that referenced
this issue
Jun 9, 2022
Fix #11052: Add regression tests
Fixed by #14686 |
bishabosha
pushed a commit
to dotty-staging/dotty
that referenced
this issue
Oct 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minimized code
Output
Expectation
No runtime exception.
The text was updated successfully, but these errors were encountered: