summaryrefslogtreecommitdiff
path: root/test/checker-tests/fail12.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/checker-tests/fail12.scala')
-rw-r--r--test/checker-tests/fail12.scala20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/checker-tests/fail12.scala b/test/checker-tests/fail12.scala
deleted file mode 100644
index 27c212ac65..0000000000
--- a/test/checker-tests/fail12.scala
+++ /dev/null
@@ -1,20 +0,0 @@
-class A {
- def f(b: Boolean) = {
- locally {
- while (b == false) ()
- // or:
- // do () while (b == false)
- }
- }
-}
-//
-// [Now checking: erasure]
-// [check: erasure] New symbols: BoxedUnit UNIT runtime scala
-// /tmp/fail.scala:4: error:
-// **** ERROR DURING INTERNAL CHECKING ****
-// type mismatch;
-// found : scala.runtime.BoxedUnit
-// required: Unit
-// while (b == false) ()
-// ^
-// one error found