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
error] -- [E120] NamingError:/Common/s2dotty/src/P4.scala:4:6-----------------------
[error] 4|{ def_1:Int= v1
[error] |^
[error] |Doubledefinition:
[error] |def_1:=>Int in classMyClass at line 3 and
[error] |def_1:=>Int in classMyClass at line 4
[error] | have the same typeafter erasure.
To be able to compile to Scala 2 and dotty without error. I'm guessing Dotty is automatically creating the _n properties. This would be great except those properties have to be defined explicitly for code cross compiling to 2.13.
bishabosha
changed the title
Inheriting from Product classes produces duplication errors.
manually defining _N methods in case class can produce Double definition error
Jun 7, 2020
To be able to compile to Scala 2 and dotty without error. I'm guessing Dotty is automatically creating the _n properties. This would be great except those properties have to be defined explicitly for code cross compiling to 2.13.
Simple project to show this here
The text was updated successfully, but these errors were encountered: