We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfb1e1f commit ed35468Copy full SHA for ed35468
tests/run/enum-constrs.check
@@ -0,0 +1,3 @@
1
+Red
2
+S1
3
+Car
tests/run/enum-constrs.scala
@@ -10,4 +10,10 @@ enum E[+T] extends java.lang.Enum[E[_]] {
10
enum Vehicle(wheels: Int) extends java.lang.Enum[Vehicle] {
11
case Bike extends Vehicle(2)
12
case Car extends Vehicle(4)
13
+}
14
+
15
+object Test extends App {
16
+ println(Color.Red)
17
+ println(E.S1)
18
+ println(Vehicle.Car)
19
}
0 commit comments