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 crash is dependent on various things that only when applied together trigger it (probably by affecting compilation order).
I did not find a way to minimize it further.
My original codebase currently works-around 2 other similar crashes that give off different reports from a wrong run, but I have yet to minimize them and will only do so once this is fixed since the problem might be related (this is a very difficult minimization).
typeDFBits=Long// why is this needed?objectDFBits:defa:Unit= f // forces suspension of this compilation unit in typerdefb:DFVal=2// uses implicit conversion `DFVal.conv`traitCandidateobjectCandidate:givencandidate:Candidate=???// completed in run 3 but created in run 2endDFBitstraitDFValobjectDFValextendsConversions
java.lang.AssertionError: assertion failed: completing val candidate in wrong run 3, was created in 2
at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
at dotty.tools.dotc.typer.Namer$Completer.complete(Namer.scala:776)
at dotty.tools.dotc.core.SymDenotations$SymDenotation.completeFrom(SymDenotations.scala:168)
at dotty.tools.dotc.core.Denotations$Denotation.completeInfo$1(Denotations.scala:188)
at dotty.tools.dotc.core.Denotations$Denotation.info(Denotations.scala:190)
at dotty.tools.dotc.core.Types$TermRef.underlying(Types.scala:2633)
at dotty.tools.dotc.core.Types$Type.widen(Types.scala:1214)
at dotty.tools.dotc.typer.Implicits$ImplicitRefs.candidateKind$1(Implicits.scala:227)
at dotty.tools.dotc.typer.Implicits$ImplicitRefs.tryCandidate$1(Implicits.zscala:255)
at dotty.tools.dotc.typer.Implicits$ImplicitRefs.filterMatching$$anonfun$2(Implicits.scala:264)
...
This crash is dependent on various things that only when applied together trigger it (probably by affecting compilation order).
I did not find a way to minimize it further.
My original codebase currently works-around 2 other similar crashes that give off different reports from a
wrong run
, but I have yet to minimize them and will only do so once this is fixed since the problem might be related (this is a very difficult minimization).Compiler version
v3.1.0
Minimized code
Minimized project available at: https://github.com/soronpo/dottybug/tree/wrong_run_crash
DFBits.scala
DFVal.scala
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: