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
This is not minimized but can be reproduced in the scalacheck repo, I'm hoping @sjrd can figure out what this is anyway 😅 :
git clone https://github.com/smarter/scalacheck/ -b 3.0.0-M1-and-scalajs
cd scalacheck
sbt "++3.0.0-M1 js/compile"
Output
[...]
[error] -- [E120] NamingError:/home/smarter/opt/scalacheck/src/main/scala/org/scalacheck/commands/Commands.scala:98:8
[error] 98|traitCommand {
[error] |^
[error] |Doubledefinition:
[error] |finaldeforg$scalacheck$commands$Commands$Command$$$outer
[error] | (): org.scalacheck.commands.Commands in classCommandSequence at line 98 and
[error] |finaldeforg$scalacheck$commands$Commands$Command$$$outer
[error] | (): org.scalacheck.commands.Commands in classCommandSequence at line 98
[error] |have the same typeafter erasure.
[error] -- [E120] NamingError:/home/smarter/opt/scalacheck/src/main/scala/org/scalacheck/commands/Commands.scala:137:8
[error] 137|traitSuccessCommandextendsCommand {
[error] |^
[error] |Doubledefinition:
[error] |finaldeforg$scalacheck$commands$Commands$SuccessCommand$$$outer
[error] | (): org.scalacheck.commands.Commands in classCommandSequence at line 137 and
[error] |finaldeforg$scalacheck$commands$Commands$SuccessCommand$$$outer
[error] | (): org.scalacheck.commands.Commands in classCommandSequence at line 137
[error] |have the same typeafter erasure.
The text was updated successfully, but these errors were encountered:
classOuterClass { // can also be traittraitParentTrait { // must be trait, can be privatedefconcreteMethod(x: Int):Int= x // must have a concrete method
}
privateclassChildClassextendsParentTrait// must be class *and* private
}
It requires a private class extending a trait with a concrete method, both in an enclosing class or trait.
This is not minimized but can be reproduced in the scalacheck repo, I'm hoping @sjrd can figure out what this is anyway 😅 :
Output
The text was updated successfully, but these errors were encountered: