diff options
Diffstat (limited to 'test/files/run/matchintasany.scala')
-rw-r--r-- | test/files/run/matchintasany.scala | 8 |
1 files changed, 8 insertions, 0 deletions
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("????"); + } +} |