File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,11 @@ class TreeTypeMap(
224224 val tmap1 = tmap.withMappedSyms(
225225 origCls(cls).typeParams ::: origDcls,
226226 cls.typeParams ::: mappedDcls)
227+ mapped.foreach { sym =>
228+ // outer Symbols can reference nested ones in info,
229+ // so we remap that once again with the updated TreeTypeMap
230+ sym.info = tmap1.mapType(sym.info)
231+ }
227232 origDcls.lazyZip(mappedDcls).foreach(cls.asClass.replace)
228233 tmap1
229234 }
Original file line number Diff line number Diff line change 1+ inline def simpleInlineWrap (f : => Any ): Unit = f
2+
3+ @ main def Test (): Unit = {
4+ simpleInlineWrap {
5+ object lifecycle {
6+ object Lifecycle {
7+ trait FromZIO
8+ }
9+ }
10+ object defn {
11+ val Lifecycle : lifecycle.Lifecycle .type = lifecycle.Lifecycle
12+ }
13+ val xa : defn.Lifecycle .type = defn.Lifecycle
14+ }
15+
16+ // more nested case
17+ simpleInlineWrap {
18+ object lifecycle {
19+ object Lifecycle {
20+ object FromZIO
21+ }
22+ }
23+ object defn {
24+ val Lifecycle : lifecycle.Lifecycle .type = lifecycle.Lifecycle
25+ }
26+ val xa : defn.Lifecycle .FromZIO .type = defn.Lifecycle .FromZIO
27+ }
28+ }
You can’t perform that action at this time.
0 commit comments