-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Class scala defined twice (Ycheck:all) #5033
New issue
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
Labels
Comments
Same happens with class java |
Same for class foo package foo
class Bar |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Oct 21, 2020
anatoliykmetyuk
added a commit
that referenced
this issue
Oct 21, 2020
Add regression tests for #5033
Still crashes with Exception in thread "main" java.lang.AssertionError: assertion failed: class defined twice class foo 3064 3060
at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
at dotty.tools.dotc.transform.TreeChecker.testDuplicate(TreeChecker.scala:54)
at dotty.tools.dotc.transform.TreeChecker.transformSym(TreeChecker.scala:77)
at dotty.tools.dotc.core.DenotTransformers$SymTransformer.transform(DenotTransformers.scala:70)
at dotty.tools.dotc.core.DenotTransformers$SymTransformer.transform$(DenotTransformers.scala:65)
at dotty.tools.dotc.transform.TreeChecker.transform(TreeChecker.scala:38)
at dotty.tools.dotc.core.Denotations$SingleDenotation.goForward$1(Denotations.scala:833)
at dotty.tools.dotc.core.Denotations$SingleDenotation.current(Denotations.scala:882)
at dotty.tools.dotc.core.Types$NamedType.computeDenot(Types.scala:2252)
at dotty.tools.dotc.core.Types$NamedType.denot(Types.scala:2215)
at dotty.tools.dotc.ast.Trees$DenotingTree.denot(Trees.scala:256)
at dotty.tools.dotc.ast.Trees$Tree.symbol(Trees.scala:145)
at dotty.tools.dotc.ast.tpd$.localOwner(tpd.scala:576)
at dotty.tools.dotc.ast.tpd$.localCtx(tpd.scala:580)
at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1607)
at dotty.tools.dotc.transform.TreeChecker$$anon$1.apply(TreeChecker.scala:619)
at dotty.tools.dotc.transform.TreeChecker$$anon$1.apply(TreeChecker.scala:611)
at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1516)
at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1518)
at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1617)
at dotty.tools.dotc.transform.TreeChecker$$anon$1.apply(TreeChecker.scala:619)
at dotty.tools.dotc.transform.TreeChecker$$anon$1.apply(TreeChecker.scala:611)
at dotty.tools.dotc.transform.TreeChecker.assertSelectWrapsNew(TreeChecker.scala:623)
at dotty.tools.dotc.transform.TreeChecker.check(TreeChecker.scala:132)
at dotty.tools.dotc.transform.TreeChecker.run(TreeChecker.scala:110)
... |
Looking into this, this seems to no longer be the case: //> using scala 3.nightly
//> using option -deprecation
//> using option -Ycheck:all
class scala Works fine, as well as with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
AE-86f761cfdd0d96cda748d11fe449910cdd76e935
The text was updated successfully, but these errors were encountered: