-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Dotty crashing when using a loop variable in an enum in a loop local class #21931
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
Comments
A slightly more readable version of the reproduction: object bla {
for (NotFound: Char <- (List('a'))) {
class crashing {
enum issue {
NotFound
case obligatory
}
}; 64.asInstanceOf[Char]
}
} |
Some proress, a minimization with less interacting features. The problem seems to be in
but isn't. def f() =
val NotFound: Char = 'a'
class crashing() {
class issue() {
NotFound
}
class issueM() {
val obligatory: issue =
class anonIssue()
extends issue() {}
new anonIssue()
}
} |
fixed by #22356 |
odersky
added a commit
that referenced
this issue
Feb 18, 2025
tgodzik
pushed a commit
to scala/scala3-lts
that referenced
this issue
Apr 1, 2025
…ng for proxies (scala#22356) possible fix for scala#21931 [Cherry-picked 08442e8]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
Scala compiler version 3.5.2 -- Copyright 2002-2024, LAMP/EPFL
Scala compiler version 3.6.0-RC1-bin-SNAPSHOT-git-18af52a -- Copyright 2002-2024, LAMP/EPFL
Minimized code
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: