diff options
author | michelou <michelou@epfl.ch> | 2007-08-17 14:22:22 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-08-17 14:22:22 +0000 |
commit | b47ed354cf13fa9b1607d6c638224782d111fc5c (patch) | |
tree | f927bd51b110143e96c0c554f9bcec160006c099 /test/files/pos/bug159.scala | |
parent | 300caee15c263c956ebf8f428fc827109ebfc9d8 (diff) | |
download | scala-b47ed354cf13fa9b1607d6c638224782d111fc5c.tar.gz scala-b47ed354cf13fa9b1607d6c638224782d111fc5c.tar.bz2 scala-b47ed354cf13fa9b1607d6c638224782d111fc5c.zip |
updated several tests for MSIL
Diffstat (limited to 'test/files/pos/bug159.scala')
-rw-r--r-- | test/files/pos/bug159.scala | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/files/pos/bug159.scala b/test/files/pos/bug159.scala index 341cf07085..95c47da23a 100644 --- a/test/files/pos/bug159.scala +++ b/test/files/pos/bug159.scala @@ -1,20 +1,18 @@ -import compat.StringBuilder - object foo { - // the problem seems to appear only // if "val _" is in the body of a case - def cooked( ckd:StringBuilder ):Unit = + def cooked(ckd: StringBuilder) { 'a' match { case '-' => val _ = ckd.append( '_' ); case 'v' => val _ = ckd.append( '_' ); } - + } } + object foo1 { - def f():Unit = { + def f() { 1 match { case 2 => val _ = 1; case 3 => val _ = 2; |