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
Unfortunelly, I was unhappy to minimize (because after any significatn minimization issue is gone), but here is a 'long way':
git clone git@github.com:nau/scalus.git
cd scalus
git checkout dotty-naming-issue-2024-04-24
sbt scalusJVM/test:compile ## success. [wait a minute or two]echo // >> shared/src/test/scala/scalus/prelude/DerivingSpec.scala
sbt scalusJVM/test:compile ## failure
Output
[error] -- [E161] NamingError:/Users/rssh/tests/dotty/naming-issue-scalus-report/scalus/shared/src/test/scala/scalus/prelude/DerivingSpec.scala:18:7
[error] 18|objectDerivingSpecScope {
[error] |^
[error] |DerivingSpecScope is already defined aspackage scalus.prelude.DerivingSpecScope
[error] 19|enumAE1derivesToData, FromData:
[error] 20|caseAextendsAE1
[error] 21|caseB(b: BigInt) extendsAE1
[error] 22|caseC(b: BigInt, bs: ByteString) extendsAE1
[error] 23|}
[error] -- [E006] NotFoundError:/Users/rssh/tests/dotty/naming-issue-scalus-report/scalus/shared/src/test/scala/scalus/prelude/DerivingSpec.scala:36:51
[error] 36|vala= summon[scalus.prelude.FromData[AE1]](d)
[error] |^^^
[error] |Notfound: typeAE1
[error] |----------------------------------------------------------------------------
[error] |Explanation (enabled by `-explain`)
[error] |--------------------------------------
[error] |Each identifier in Scala needs a matching declaration. There are two kinds of
[error] |identifiers: typeidentifiers and value identifiers. Value identifiers are introduced
[error] | by `val`, `def`, or `object` declarations. Type identifiers are introduced by `type`,
[error] | `class`, `enum`, or `trait` declarations.
[error] |
[error] |Identifiers refer to matching declarations in their environment, or they can be
[error] | imported from elsewhere.
[error] |
[error] |Possible reasons why no matching declaration was found:
[error] |-The declaration or the use is mis-spelt.
[error] |-Animportismissing.
[error] ----------------------------------------------------------------------------
[error] -- [E006] NotFoundError:/Users/rssh/tests/dotty/naming-issue-scalus-report/scalus/shared/src/test/scala/scalus/prelude/DerivingSpec.scala:38:21
[error] 38|caseAE1.A=>BigInt(1)
[error] |^^^
[error] |Notfound: AE1
[error] |----------------------------------------------------------------------------
[error] |Explanation (enabled by `-explain`)
[error] |--------------------------------------
[error] |Each identifier in Scala needs a matching declaration. There are two kinds of
[error] |identifiers: typeidentifiers and value identifiers. Value identifiers are introduced
[error] | by `val`, `def`, or `object` declarations. Type identifiers are introduced by `type`,
[error] | `class`, `enum`, or `trait` declarations.
[error] |
[error] |Identifiers refer to matching declarations in their environment, or they can be
[error] | imported from elsewhere.
[error] |
[error] |Possible reasons why no matching declaration was found:
[error] |-The declaration or the use is mis-spelt.
[error] |-Animportismissing.
....
Expectation
The second time should also compile.
The text was updated successfully, but these errors were encountered:
Compiler version
Scala-3.3.5
alse reproduced at the latest master
Minimized code
Unfortunelly, I was unhappy to minimize (because after any significatn minimization issue is gone), but here is a 'long way':
Output
Expectation
The second time should also compile.
The text was updated successfully, but these errors were encountered: