Commit fc3ba61
committed
Fix cyclic reference in Trees.scala
The previous commit added _root_.scala.Serializable as a parent to every
object, this lead to a cyclic reference manifesting itselfs as "not
found: type Type" in Trees.scala that we worked around by replace `Type`
with `Types.Type`. This commit fixes this properly by adding a shortcut
in typedIdent when typing `_root_` which avoids forcing imports.1 parent 33b9894 commit fc3ba61
File tree
2 files changed
+6
-2
lines changed- compiler/src/dotty/tools/dotc
- ast
- typer
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
890 | | - | |
891 | | - | |
| 890 | + | |
892 | 891 | | |
893 | 892 | | |
894 | 893 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
364 | 369 | | |
365 | 370 | | |
366 | 371 | | |
| |||
0 commit comments