You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
packagecom.exampleobjectBar {
defvoid():Unit=thrownewExceptiondefmain(args: Array[String]):Unit= {
this
.void() // this is line 10
}
}
Output
Exception in thread "main" java.lang.Exception
at com.example.Bar$.void(test.scala:6)
at com.example.Bar$.main(test.scala:9)
at com.example.Bar.main(test.scala)
Expectation
at com.example.Bar$.main(test.scala:9) would ideally be at com.example.Bar$.main(test.scala:10), right?
The text was updated successfully, but these errors were encountered:
packagecom.exampleobjectBar {
defself(x: Any):Bar.type=thisdefvoid():Unit=thrownewExceptiondefmain(args: Array[String]):Unit= {
this
.self((x: Int) => x)
.void() // this is line 14
}
}
Exception in thread "main" java.lang.Exception
at com.example.Bar$.void(test.scala:9)
at com.example.Bar$.main(test.scala:13)
at com.example.Bar.main(test.scala)
Loading any arg persuades it to emit a line, apparently. By whole tree, I meant the this.x.y application. I confirmed that javac does the obvious thing (complete line info).
Compiler version
3.3.1-RC1-bin-20230504-0e00420-NIGHTLY
Minimized code
Output
Expectation
at com.example.Bar$.main(test.scala:9)
would ideally beat com.example.Bar$.main(test.scala:10)
, right?The text was updated successfully, but these errors were encountered: