File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ package dotty.tools.dotc.config
2
2
3
3
object Config {
4
4
5
- val newScheme = true
6
-
7
5
final val cacheMembersNamed = true
8
6
final val cacheAsSeenFrom = true
9
7
final val cacheMemberNames = true
Original file line number Diff line number Diff line change @@ -1242,10 +1242,7 @@ object SymDenotations {
1242
1242
def opaqueAlias (implicit ctx : Context ): Type = {
1243
1243
def recur (tp : Type ): Type = tp match {
1244
1244
case RefinedType (parent, rname, TypeAlias (alias)) =>
1245
- if rname == name then alias match
1246
- case alias : LazyRef => alias.ref
1247
- case _ => alias
1248
- else recur(parent)
1245
+ if rname == name then alias.stripLazyRef else recur(parent)
1249
1246
case _ =>
1250
1247
NoType
1251
1248
}
Original file line number Diff line number Diff line change @@ -1004,8 +1004,7 @@ class Namer { typer: Typer =>
1004
1004
sym.info = NoCompleter
1005
1005
sym.info = sym.opaqueToBounds(checkNonCyclic(sym, unsafeInfo, reportErrors = true ))
1006
1006
}
1007
- if ! Config .newScheme then sym.normalizeOpaque()
1008
- else if sym.isOpaqueAlias then sym.typeRef.recomputeDenot() // make sure we see the new bounds from now on
1007
+ if sym.isOpaqueAlias then sym.typeRef.recomputeDenot() // make sure we see the new bounds from now on
1009
1008
sym.resetFlag(Provisional )
1010
1009
1011
1010
// Here we pay the price for the cavalier setting info to TypeBounds.empty above.
You can’t perform that action at this time.
0 commit comments