File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -748,22 +748,7 @@ object TypeOps:
748
748
//
749
749
if (child.name == tpnme.LOCAL_CHILD ) return child.typeRef
750
750
751
- val childTp = {
752
- val parentSym = parent.typeSymbol
753
- val parentPre = parent.normalizedPrefix
754
- val defaultRef = if (child.isTerm) child.termRef else child.typeRef
755
-
756
- if (parentSym.isClass && parentPre.isInstanceOf [TermRef ]) {
757
- val newPrefix = childPrefix(parentPre, parentSym, child)
758
- if (newPrefix.exists)
759
- if (child.isTerm) TermRef (newPrefix, child.asTerm)
760
- else TypeRef (newPrefix, child.asType)
761
- else
762
- defaultRef
763
- }
764
- else
765
- defaultRef
766
- }
751
+ val childTp = if (child.isTerm) child.termRef else child.typeRef
767
752
768
753
inContext(ctx.fresh.setExploreTyperState().setFreshGADTBounds.addMode(Mode .GadtConstraintInference )) {
769
754
instantiateToSubType(childTp, parent, mixins).dealias
You can’t perform that action at this time.
0 commit comments