aboutsummaryrefslogtreecommitdiff
path: root/tests/patmat/enumColor.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/patmat/enumColor.scala')
-rw-r--r--tests/patmat/enumColor.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/patmat/enumColor.scala b/tests/patmat/enumColor.scala
new file mode 100644
index 000000000..60d610d0d
--- /dev/null
+++ b/tests/patmat/enumColor.scala
@@ -0,0 +1,12 @@
+ enum Color {
+ case Red, Green, Blue
+ }
+
+ object Test {
+ def f(color: Color) = {
+ import Color._
+ color match {
+ case Red | Green | Blue =>
+ }
+ }
+}