diff options
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/matchbytes.check | 1 | ||||
-rw-r--r-- | test/files/run/matchbytes.scala | 7 | ||||
-rw-r--r-- | test/files/run/matchintasany.check | 1 | ||||
-rw-r--r-- | test/files/run/matchintasany.scala | 8 |
4 files changed, 17 insertions, 0 deletions
diff --git a/test/files/run/matchbytes.check b/test/files/run/matchbytes.check new file mode 100644 index 0000000000..d00491fd7e --- /dev/null +++ b/test/files/run/matchbytes.check @@ -0,0 +1 @@ +1 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("????"); + } +} diff --git a/test/files/run/matchintasany.check b/test/files/run/matchintasany.check new file mode 100644 index 0000000000..d00491fd7e --- /dev/null +++ b/test/files/run/matchintasany.check @@ -0,0 +1 @@ +1 diff --git a/test/files/run/matchintasany.scala b/test/files/run/matchintasany.scala new file mode 100644 index 0000000000..2c732b98b5 --- /dev/null +++ b/test/files/run/matchintasany.scala @@ -0,0 +1,8 @@ +object Test extends Application{ + val x = (1 : Any) match { + case 0xFFFFFFFF00000001L => println("Oops, overflow!"); + case 2L => println(2); + case 1L => println(1); + case _ => println("????"); + } +} |