File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2784,10 +2784,8 @@ object Types {
2784
2784
tl => tl.integrate(params, resultType))
2785
2785
}
2786
2786
2787
- final def apply (paramNames : List [TermName ])(paramInfosExp : MethodType => List [Type ], resultTypeExp : MethodType => Type )(implicit ctx : Context ): MethodType = {
2788
- val mtc = unique(new CachedMethodType (paramNames)(paramInfosExp, resultTypeExp, kind))
2789
- if (kind is JavaKind ) mtc else checkValid(mtc)
2790
- }
2787
+ final def apply (paramNames : List [TermName ])(paramInfosExp : MethodType => List [Type ], resultTypeExp : MethodType => Type )(implicit ctx : Context ): MethodType =
2788
+ checkValid(new CachedMethodType (paramNames)(paramInfosExp, resultTypeExp, kind))
2791
2789
2792
2790
def checkValid (mt : MethodType )(implicit ctx : Context ): mt.type = {
2793
2791
if (Config .checkMethodTypes)
You can’t perform that action at this time.
0 commit comments