aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t8233.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t8233.scala')
-rw-r--r--tests/pending/run/t8233.scala31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/pending/run/t8233.scala b/tests/pending/run/t8233.scala
deleted file mode 100644
index 3896a7cc6..000000000
--- a/tests/pending/run/t8233.scala
+++ /dev/null
@@ -1,31 +0,0 @@
-object Test {
- def bar(s: String) = s;
- val o: Option[Null] = None
- def nullReference: Unit = {
- val a: Null = o.get
- bar(a) // Was: VerifyError under GenICode
- }
-
- def literal: Unit = {
- val a: Null = null
- bar(a)
- }
-
- /** Check SI-8330 for details */
- def expectedUnitInABranch(b: Boolean): Boolean = {
- if (b) {
- val x = 12
- ()
- } else {
- // here expected type is (unboxed) Unit
- null
- }
- true
- }
-
- def main(args: Array[String]): Unit = {
- try { nullReference } catch { case _: NoSuchElementException => }
- literal
- expectedUnitInABranch(true) // Was: VerifyError under GenICode
- }
-}