Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
liufengyun committed Oct 3, 2024
1 parent c332766 commit e817eb1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/init-global/warn/Color.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
enum Color:
case None, White, Black

enum Player:
case Black, White

val color: Color =
if this == Player.Black // warn
then Color.Black
else Color.White

0 comments on commit e817eb1

Please sign in to comment.