aboutsummaryrefslogtreecommitdiff
path: root/tests/run/enum-Color.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/enum-Color.scala')
-rw-r--r--tests/run/enum-Color.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run/enum-Color.scala b/tests/run/enum-Color.scala
index 683d18d9e..f4f6aaef8 100644
--- a/tests/run/enum-Color.scala
+++ b/tests/run/enum-Color.scala
@@ -7,5 +7,9 @@ object Test {
for (color <- Color.enumValues) {
println(s"$color: ${color.enumTag}")
assert(Color.enumValue(color.enumTag) eq color)
+ import Color._
+ color match {
+ case Red | Green | Blue =>
+ }
}
}