diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-11-02 14:34:35 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-11-02 14:34:35 +0000 |
commit | b6778be91900b8161e705dc2598ef7af86842b0b (patch) | |
tree | d15e8ec18a37eec212f50f1ace27714d7e7d4d34 /test/checker-tests/fail6.scala | |
parent | ac6c76f26d884a94d0c9ff54f055d3f9ab750bac (diff) | |
download | scala-b6778be91900b8161e705dc2598ef7af86842b0b.tar.gz scala-b6778be91900b8161e705dc2598ef7af86842b0b.tar.bz2 scala-b6778be91900b8161e705dc2598ef7af86842b0b.zip |
Begone t1737...
Diffstat (limited to 'test/checker-tests/fail6.scala')
-rw-r--r-- | test/checker-tests/fail6.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/checker-tests/fail6.scala b/test/checker-tests/fail6.scala index c59be55c4e..a43bada400 100644 --- a/test/checker-tests/fail6.scala +++ b/test/checker-tests/fail6.scala @@ -3,13 +3,13 @@ // Apply( // sym=method while$1, tpe=Unit, tpe.sym=class Unit, tpe.sym.owner=package scala // Ident("while$1"), // sym=method while$1, sym.owner=method f, sym.tpe=()Unit, tpe=()Unit, tpe.sym=<none>, class Erasure { - def f(b: Boolean) = { + def f(b: Boolean) = { if (b) "abc" else while (b) () } } -// % work/check all -Xprint:erasure work/fail6.scala +// % work/check all -Xprint:erasure work/fail6.scala // TypeStack init: REFERENCE(type AnyRef) // [Not checkable: parser] // [Not checkable: namer] @@ -47,9 +47,9 @@ class Erasure { // } // } // } -// +// // [Now checking: erasure] -// work/fail6.scala:4: error: +// work/fail6.scala:4: error: // **** ERROR DURING INTERNAL CHECKING **** // type mismatch; // found : scala.runtime.BoxedUnit @@ -57,5 +57,5 @@ class Erasure { // else while (b) () // ^ // one error found -// -// +// +// |