Skip to content

Commit b11a27e

Browse files
committed
Revert "Add a test for array load"
This reverts commit 99b4ef8.
1 parent c3d6157 commit b11a27e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/files/run/t8601b.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
object Test {
22
def len(x: Array[String]): Unit = x.length
3-
def load(x: Array[String]): Unit = x(0)
43

54
def check(x: => Any) = try { x; sys.error("failed to throw NPE!") } catch { case _: NullPointerException => }
65

76
def main(args: Array[String]) {
8-
check(len(null)) // bug: did not NPE
9-
check(load(null))
7+
check(len(null))
108
}
119
}

0 commit comments

Comments
 (0)