aboutsummaryrefslogtreecommitdiff
path: root/tests/patmat/t7298.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/patmat/t7298.scala')
-rw-r--r--tests/patmat/t7298.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/patmat/t7298.scala b/tests/patmat/t7298.scala
new file mode 100644
index 000000000..6fba5e120
--- /dev/null
+++ b/tests/patmat/t7298.scala
@@ -0,0 +1,11 @@
+sealed trait Bool
+
+object Bool {
+ case object FALSE extends Bool
+ case object TRUE extends Bool
+
+ def show(b: Bool) = b match {
+ case FALSE => "1"
+ case TRUE => "2"
+ }
+}