File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1895,9 +1895,8 @@ object Types {
1895
1895
*/
1896
1896
protected def computeSignature (implicit ctx : Context ): Signature =
1897
1897
val lastd = lastDenotation
1898
- val isErased = ctx.erasedTypes
1899
- if lastd != null && ! isErased then lastd.signature
1900
- else if isErased then computeSignature(using ctx.withPhase(ctx.erasurePhase))
1898
+ if lastd != null && lastd.validFor.firstPhaseId <= ctx.erasurePhase.id then lastd.signature
1899
+ else if ctx.erasedTypes then computeSignature(using ctx.withPhase(ctx.erasurePhase))
1901
1900
else symbol.asSeenFrom(prefix).signature
1902
1901
1903
1902
/** The signature of the current denotation if it is known without forcing.
@@ -1908,9 +1907,8 @@ object Types {
1908
1907
if ctx.runId == mySignatureRunId then mySignature
1909
1908
else
1910
1909
val lastd = lastDenotation
1911
- val isErased = ctx.erasedTypes
1912
- if lastd != null && ! isErased then lastd.signature
1913
- else if isErased then currentSignature(using ctx.withPhase(ctx.erasurePhase))
1910
+ if lastd != null && lastd.validFor.firstPhaseId <= ctx.erasurePhase.id then lastd.signature
1911
+ else if ctx.erasedTypes then currentSignature(using ctx.withPhase(ctx.erasurePhase))
1914
1912
else
1915
1913
val sym = currentSymbol
1916
1914
if sym.exists then sym.asSeenFrom(prefix).signature
You can’t perform that action at this time.
0 commit comments