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 c332766 commit e817eb1Copy full SHA for e817eb1
tests/init-global/warn/Color.scala
@@ -0,0 +1,10 @@
1
+enum Color:
2
+ case None, White, Black
3
+
4
+enum Player:
5
+ case Black, White
6
7
+ val color: Color =
8
+ if this == Player.Black // warn
9
+ then Color.Black
10
+ else Color.White
0 commit comments