Skip to content

Commit e4fe509

Browse files
committed
Drop special provision for opaque types in computeDenot
It turns out we needed that only because of the hole that's now plugged in computeAsSeenFrom
1 parent e317084 commit e4fe509

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,10 +1891,8 @@ object Types {
18911891
finish(memberDenot(symd.initial.name, allowPrivate = false))
18921892
else if (prefix.isArgPrefixOf(symd))
18931893
finish(argDenot(sym.asType))
1894-
else if (infoDependsOnPrefix(symd, prefix)) {
1895-
if (!symd.isClass && symd.is(Opaque, butNot = Deferred)) symd.normalizeOpaque()
1894+
else if (infoDependsOnPrefix(symd, prefix))
18961895
finish(memberDenot(symd.initial.name, allowPrivate = symd.is(Private)))
1897-
}
18981896
else
18991897
finish(symd.current)
19001898
}

0 commit comments

Comments
 (0)