Skip to content

Commit e817eb1

Browse files
committed
Add a test
1 parent c332766 commit e817eb1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/init-global/warn/Color.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)