We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.4.2-RC1
$sbt testCompilation tests/pos/shared-classname.scala. Does not fail with scalac tests/pos/shared-classname.scala.
$sbt testCompilation tests/pos/shared-classname.scala
scalac tests/pos/shared-classname.scala
(shortened version of not-looping-implicit.scala with the anonymous classes given the same name).
import scala.deriving.Mirror import scala.compiletime._ trait Schema[T] object Schema { inline given derived[A]: Schema[A] = inline summonInline[Mirror.Of[A]] match { case m: Mirror.SumOf[A] => summonInline[Schema[m.MirroredElemTypes]] class InlinedSchema extends Schema[A] {} new InlinedSchema case m: Mirror.ProductOf[A] => class InlinedSchema extends Schema[A] {} new InlinedSchema } } sealed trait InputValue object InputValue { case class T() extends InputValue } @main def Test:Schema[InputValue] = Schema.derived
completed (0/1, 0 failed, 0s)java.lang.AssertionError: assertion failed: class defined twice class Schema$_$InlinedSchema 7130 6099 at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8) at dotty.tools.dotc.transform.TreeChecker.testDuplicate(TreeChecker.scala:55) ...
The text was updated successfully, but these errors were encountered:
Fails Ycheck after genSJSIR
genSJSIR
checking t/Test.scala after phase MegaPhase{dropOuterAccessors, checkNoSuperThis, flatten, transformWildcards, moveStatic, expandPrivate, restoreScopes, selectStatic, Collect entry points, collectSuperCalls, repeatableAnnotations} checking t/Test.scala after phase genSJSIR java.lang.AssertionError: assertion failed: class defined twice class Schema$_$InlinedSchema 6090 7121 at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8) at dotty.tools.dotc.transform.TreeChecker.testDuplicate(TreeChecker.scala:55) at dotty.tools.dotc.transform.TreeChecker.transformSym(TreeChecker.scala:78) at dotty.tools.dotc.core.DenotTransformers$SymTransformer.transform(DenotTransformers.scala:72)
Sorry, something went wrong.
trait Foo object Foo { inline def bar(): Foo = class InlinedFoo extends Foo {} new InlinedFoo inline def foo(): Foo = bar() class InlinedFoo extends Foo {} new InlinedFoo def Test: Foo = Foo.foo() }
@sjrd could you check if this is an issue with genSJSIR or before that pahse?
sjrd
No branches or pull requests
Compiler version
3.4.2-RC1
Minimized code
$sbt testCompilation tests/pos/shared-classname.scala
. Does not fail withscalac tests/pos/shared-classname.scala
.(shortened version of not-looping-implicit.scala with the anonymous classes given the same name).
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: