Skip to content

Also map types in Implicits.emitDictionary#26143

Open
eejbyfeldt wants to merge 1 commit into
scala:mainfrom
eejbyfeldt:i20448
Open

Also map types in Implicits.emitDictionary#26143
eejbyfeldt wants to merge 1 commit into
scala:mainfrom
eejbyfeldt:i20448

Conversation

@eejbyfeldt
Copy link
Copy Markdown
Contributor

Fixes: #20448

Before the test case would crash with

Exception in thread "main" java.lang.AssertionError: assertion failed: unresolved symbols: value $_lazy_implicit_$1 (line -1) #15419 when pickling /home/eejbyfeldt/dev/eejbyfeldt/scala_playground/scala3_crash.scala
	at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
	at dotty.tools.dotc.core.tasty.TreePickler.pickle(TreePickler.scala:872)
	at dotty.tools.dotc.transform.Pickler.run$$anonfun$1$$anonfun$1(Pickler.scala:136)

Because if there were path dependent types the types would not be
updated and still refer to the old symbols.

How much have you relied on LLM-based tools in this contribution?

Extensively, for finding the location in code and writing the fix.

How was the solution tested?

New automated tests (including the issue's reproducer, if applicable)

Fixes: scala#20448

Before the test case would crash with
```
Exception in thread "main" java.lang.AssertionError: assertion failed: unresolved symbols: value $_lazy_implicit_$1 (line -1) scala#15419 when pickling /home/eejbyfeldt/dev/eejbyfeldt/scala_playground/scala3_crash.scala
	at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
	at dotty.tools.dotc.core.tasty.TreePickler.pickle(TreePickler.scala:872)
	at dotty.tools.dotc.transform.Pickler.run$$anonfun$1$$anonfun$1(Pickler.scala:136)
```
Because if there were path dependent types the types would not be
updated and still refer to the old symbols.
@eejbyfeldt eejbyfeldt marked this pull request as ready for review May 22, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

by name implicits results in compiler crash unresolved symbols: value $_lazy_implicit_$1

1 participant