diff options
author | Burak Emir <emir@epfl.ch> | 2007-06-22 10:33:37 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2007-06-22 10:33:37 +0000 |
commit | 4e18a7e8d40efc59ff9d3c0a87eb04c67343e48d (patch) | |
tree | e4f5be61e8271d2fa30dfd4f3d8a42b46a86fbff /test/pending/pos/switchUnbox.scala | |
parent | ed3f1d101d6008629a2645e5887ba2485932acea (diff) | |
download | scala-4e18a7e8d40efc59ff9d3c0a87eb04c67343e48d.tar.gz scala-4e18a7e8d40efc59ff9d3c0a87eb04c67343e48d.tar.bz2 scala-4e18a7e8d40efc59ff9d3c0a87eb04c67343e48d.zip |
test cases for unbox problem
Diffstat (limited to 'test/pending/pos/switchUnbox.scala')
-rw-r--r-- | test/pending/pos/switchUnbox.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/pending/pos/switchUnbox.scala b/test/pending/pos/switchUnbox.scala new file mode 100644 index 0000000000..a97bff5521 --- /dev/null +++ b/test/pending/pos/switchUnbox.scala @@ -0,0 +1,11 @@ +// this test has accompanying .flags file +// that contains -Xsqueeze:on +// +object Foo { + var xyz: (int, String) = (1, "abc") + xyz._1 match { + case 1 => Console.println("OK") + case 2 => Console.println("OK") + case _ => Console.println("KO") + } +} |