Commit 61b8eed
committed
Avoid time travel when handling of LazyRefs
The idea of LazyRefs is that they are always completed in the current context.
But that did not work if the LazyRef is mapped in a type map. Here, the TypeMap's
context was used to do the remap. We now use the context that forced the LazyVal
instead.
The problem manifested itself with failing replTests when the new implicitScope
scheme was used.1 parent b852e14 commit 61b8eed
File tree
2 files changed
+8
-3
lines changed- compiler/src/dotty/tools/dotc/core
2 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4862 | 4862 | | |
4863 | 4863 | | |
4864 | 4864 | | |
4865 | | - | |
| 4865 | + | |
4866 | 4866 | | |
4867 | 4867 | | |
4868 | 4868 | | |
| |||
4979 | 4979 | | |
4980 | 4980 | | |
4981 | 4981 | | |
4982 | | - | |
| 4982 | + | |
| 4983 | + | |
| 4984 | + | |
| 4985 | + | |
| 4986 | + | |
| 4987 | + | |
4983 | 4988 | | |
4984 | 4989 | | |
4985 | 4990 | | |
| |||
0 commit comments