diff options
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; |