We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.1.2
package example class A { def foo: Unit = { Seq(1).foreach { x => println(x) println(x) } } }
public void foo(); Code: 0: getstatic #18 // Field scala/package$.MODULE$:Lscala/package$; 3: invokevirtual #22 // Method scala/package$.Seq:()Lscala/collection/immutable/Seq$; 6: getstatic #27 // Field scala/runtime/ScalaRunTime$.MODULE$:Lscala/runtime/ScalaRunTime$; 9: iconst_1 10: newarray int 12: dup 13: iconst_0 14: iconst_1 15: iastore 16: invokevirtual #31 // Method scala/runtime/ScalaRunTime$.wrapIntArray:([I)Lscala/collection/immutable/ArraySeq; 19: invokevirtual #37 // Method scala/collection/immutable/Seq$.apply:(Lscala/collection/immutable/Seq;)Lscala/collection/SeqOps; 22: invokedynamic #55, 0 // InvokeDynamic #0:apply$mcVI$sp:()Lscala/runtime/java8/JFunction1$mcVI$sp; 27: invokeinterface #61, 2 // InterfaceMethod scala/collection/SeqOps.foreach:(Lscala/Function1;)V 32: return LineNumberTable: line 4: 0 line 5: 0 line 7: 22 LocalVariableTable: Start Length Slot Name Signature 0 33 0 this Lexample/A;
In the LineNumberTable I don't expect line 7: 22. I would prefer line 5: 22.
LineNumberTable
line 7: 22
line 5: 22
Note however that bytecode 22: invokedynamic has no associated line number in Scala 2, which is fine.
22: invokedynamic
The text was updated successfully, but these errors were encountered:
I believe this is the same issue as #15098, which shows how it affects debuggers. 😄
Sorry, something went wrong.
Right, this is a duplicate of #15098
sjrd
No branches or pull requests
Compiler version
3.1.2
Minimized code
Output
Expectation
In the
LineNumberTable
I don't expectline 7: 22
. I would preferline 5: 22
.Note however that bytecode
22: invokedynamic
has no associated line number in Scala 2, which is fine.The text was updated successfully, but these errors were encountered: