File tree 1 file changed +2
-6
lines changed
compiler/src/dotty/tools/dotc/core 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -2677,9 +2677,7 @@ object Types {
2677
2677
else {
2678
2678
if (isType) {
2679
2679
val res =
2680
- val sym =
2681
- if (currentSymbol.isValidInCurrentRun) currentSymbol
2682
- else computeSymbol
2680
+ val sym = stableInRunSymbol
2683
2681
if (sym.isAllOf(ClassTypeParam )) argForParam(prefix)
2684
2682
else prefix.lookupRefined(name)
2685
2683
if (res.exists) return res
@@ -2754,9 +2752,7 @@ object Types {
2754
2752
/** A reference like this one, but with the given prefix. */
2755
2753
final def withPrefix (prefix : Type )(using Context ): Type = {
2756
2754
def reload (): NamedType = {
2757
- val sym =
2758
- if lastSymbol.nn.isValidInCurrentRun then lastSymbol.nn
2759
- else computeSymbol
2755
+ val sym = stableInRunSymbol
2760
2756
val allowPrivate = ! sym.exists || sym.is(Private )
2761
2757
var d = memberDenot(prefix, name, allowPrivate)
2762
2758
if (d.isOverloaded && sym.exists)
You can’t perform that action at this time.
0 commit comments