Skip to content

Commit 8adc6b6

Browse files
committed
Small optimization
1 parent 4f0bb7e commit 8adc6b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas
848848
isImplicit = tag == IMPLICITMETHODtpe || params.nonEmpty && params.head.is(Implicit))
849849
val result = maker.fromSymbols(params, restpe)
850850
result.resType match
851-
case restpe1: MethodType =>
851+
case restpe1: MethodType if restpe1 ne restpe =>
852852
val prevResParams = paramsOfMethodType.remove(restpe)
853853
if prevResParams != null then
854854
paramsOfMethodType.put(restpe1, prevResParams)

0 commit comments

Comments
 (0)