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
java.lang.VerifyError: (class:ChildType$$, method: <init> signature: ()V) Expecting to find object/array on stack
at Main$$.main(Main.scala:9)
at Main.main(Main.scala)
In my opinion scalac should correctly compile this (= allow SubType to be derived from ParentType and passing the value of 'something' directly to ParentType upon it's creation).
Versions in use:
Scala: 2.8.1, 2.8.0, 2.7.7
Java: 1.6.0_18, 64 Bit Server VM, OpenJDK
Operating system: Linux, Fedora 12, 64 Bit
@hubertp said:
Since r23222 this is a compiler error:
test.scala:3:error: super constructor cannot be passed a self reference unless parameter is declared by-name
objectChildTypeextendsParentType(ChildType.something) {
^
one error found
Paul can you comment if this is intended for this ticket as well (and close the bug) or reassign to the meeting, please?
The following code produces a VerifyError at runtime:
This is the interesting part of the error:
In my opinion scalac should correctly compile this (= allow SubType to be derived from ParentType and passing the value of 'something' directly to ParentType upon it's creation).
Versions in use:
Scala: 2.8.1, 2.8.0, 2.7.7
Java: 1.6.0_18, 64 Bit Server VM, OpenJDK
Operating system: Linux, Fedora 12, 64 Bit
This issue was reported on the scala-user mailing list:
http://www.scala-lang.org/node/8328
There is a similar issue already in trac: #3913
The text was updated successfully, but these errors were encountered: