summaryrefslogtreecommitdiff
path: root/test/files/run/matchbytes.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/matchbytes.scala')
-rw-r--r--test/files/run/matchbytes.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/matchbytes.scala b/test/files/run/matchbytes.scala
new file mode 100644
index 0000000000..73e55d47cb
--- /dev/null
+++ b/test/files/run/matchbytes.scala
@@ -0,0 +1,7 @@
+object Test extends Application{
+ val x = (1 : Byte) match {
+ case 2 => println(2);
+ case 1 => println(1);
+ case _ => println("????");
+ }
+}