-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ArrayIndexOutOfBoundsException
in parser with -rewrite and -indent flags
#19893
Comments
ArrayIndexOutOfBoundsException
in parser with -rewrite and -indent flags
It's notable that |
@Bersier thanks for reporting! Could you please try to compile the same code with |
@mbovel The crash does indeed go away with
|
I haven't been able to minimize this. I tried: //> using scala 3.4.0
//> using options -rewrite -indent
sealed trait Vertex {}
sealed trait Edge {}
class Graph[+E] {
private[this] case class EdgeImpl(source: Vertex, label: E, target: Vertex) extends Edge {}
}
class Graph2[+E] {
private[this] case class EdgeImpl(source: Vertex, label: E, target: Vertex) extends Edge {
}
} But both compile successfully. @Bersier do you have curly braces on the displayed line in your code? Also, I noted that the error happens in |
Settings
Scala version: 3.4.0
sbt version: 1.9.9
scalac options:
-rewrite
,-indent
jvm version: 21.0.2
dependencies: none
Compiler crash message
Unfortunately, I am not ready to minimize the code, and the project is private. So for now, this is mostly posted for statistical purposes. However, if someone wants to look into it, I'm open to helping by providing more information, if it is not too hard to do so.
The text was updated successfully, but these errors were encountered: