-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
area:enumsarea:metaprogramming:compiletimeThe scala.compiletime packageThe scala.compiletime packageitype:bugregressionThis worked in a previous version but doesn't anymoreThis worked in a previous version but doesn't anymore
Milestone
Description
Compiler version
3.6.4
Minimized code
import scala.compiletime.testing.typeCheckErrors
object Test {
def main(args: Array[String]): Unit = {
println(typeCheckErrors("enum Foo { case A }"))
}
}
Output
List(Error(object creation impossible, since def ordinal: Int in trait Enum in package scala.reflect is not defined ,enum Foo { case A },11,Typer))
Expectation
The code should not have any type check errors and just print
List()
Metadata
Metadata
Assignees
Labels
area:enumsarea:metaprogramming:compiletimeThe scala.compiletime packageThe scala.compiletime packageitype:bugregressionThis worked in a previous version but doesn't anymoreThis worked in a previous version but doesn't anymore