We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3649fa8 + 8cd5d33 commit 7862aafCopy full SHA for 7862aaf
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -2887,7 +2887,7 @@ object Types {
2887
}
2888
2889
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))
+ checkValid(unique(new CachedMethodType(paramNames)(paramInfosExp, resultTypeExp, self)))
2891
2892
def checkValid(mt: MethodType)(implicit ctx: Context): mt.type = {
2893
if (Config.checkMethodTypes)
0 commit comments