We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2793b75 commit 2b74394Copy full SHA for 2b74394
tests/run/i3340.check
@@ -1,5 +1,7 @@
1
-Test$.f1(i3340.scala:12)
2
-Test$.f2(i3340.scala:16)
3
-Test$.f3(i3340.scala:20)
4
-Test$.f4(i3340.scala:27)
5
-Test$.f5(i3340.scala:34)
+Test$.f1(i3340.scala:13)
+Test$.f2(i3340.scala:17)
+Test$.f3(i3340.scala:21)
+Test$.f4(i3340.scala:28)
+Test$.f5(i3340.scala:35)
6
+foo
7
+Test$.f6(i3340.scala:42)
tests/run/i3340.scala
@@ -5,6 +5,7 @@ object Test {
printlnStackLine(f3)
printlnStackLine(f4)
printlnStackLine(f5)
8
+ printlnStackLine(f6)
9
}
10
11
def f1: Unit = {
@@ -35,6 +36,13 @@ object Test {
35
36
()
37
38
39
+ def f6: Unit = {
40
+ val n: Any = null
41
+ val a: Nothing =
42
+ { println("foo"); n }.asInstanceOf[Nothing] // throws here
43
+ ()
44
+ }
45
+
46
def printlnStackLine(t: => Any): Unit = {
47
try t
48
catch {
0 commit comments