Open
Description
This is a very strange problem that only shows occasionally, I have no idea how to reliably reproduce it.
updates: reproduced in #17076 (comment) and #17076 (comment)
Compiler version
3.2.2
Minimized code
it can't be reproduced,that's why it's so strange. I copied this snippet to another project without giving any errors.
sealed trait Expr[w <: Int]
case class BinOp[w <: Int](a: Expr[w], b: Expr[w], nm: String) extends Expr[w]
Output
metals ide gives error below,and sbt also gives same error message:
the error message is
Overloaded or recursive constructor BinOp needs return type
Something's wrong: missing original symbol for type tree
Sometimes, it will give errors like "Cyclic reference involving val ..."
Expectation
code should compile