Skip to content

Commit 8cd5d33

Browse files
smarterallanrenucci
authored andcommitted
Restore caching of CachedMethodType
Looks like this was accidentally removed in 81dc91d
1 parent 1793e86 commit 8cd5d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2887,7 +2887,7 @@ object Types {
28872887
}
28882888

28892889
final def apply(paramNames: List[TermName])(paramInfosExp: MethodType => List[Type], resultTypeExp: MethodType => Type)(implicit ctx: Context): MethodType =
2890-
checkValid(new CachedMethodType(paramNames)(paramInfosExp, resultTypeExp, self))
2890+
checkValid(unique(new CachedMethodType(paramNames)(paramInfosExp, resultTypeExp, self)))
28912891

28922892
def checkValid(mt: MethodType)(implicit ctx: Context): mt.type = {
28932893
if (Config.checkMethodTypes)

0 commit comments

Comments
 (0)