File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 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)
1
+ Test$.f1(i3340.scala:13)
2
+ Test$.f2(i3340.scala:17)
3
+ Test$.f3(i3340.scala:21)
4
+ Test$.f4(i3340.scala:28)
5
+ Test$.f5(i3340.scala:35)
6
+ foo
7
+ Test$.f6(i3340.scala:42)
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ object Test {
5
5
printlnStackLine(f3)
6
6
printlnStackLine(f4)
7
7
printlnStackLine(f5)
8
+ printlnStackLine(f6)
8
9
}
9
10
10
11
def f1 : Unit = {
@@ -35,6 +36,13 @@ object Test {
35
36
()
36
37
}
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
+
38
46
def printlnStackLine (t : => Any ): Unit = {
39
47
try t
40
48
catch {
You can’t perform that action at this time.
0 commit comments