File tree 1 file changed +2
-5
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -85,14 +85,11 @@ object ContextFunctionResults:
85
85
else
86
86
val defn .ContextFunctionType (params, resTpe, erasedParams) = tp : @ unchecked
87
87
val rest = contextParamCount(resTpe, crCount - 1 )
88
+ // TODO use mt.nonErasedParamCount
88
89
if erasedParams.contains(true ) then erasedParams.count(_ == false ) + rest else params.length + rest // TODO use mt.nonErasedParamCount
89
90
90
91
def normalParamCount (tp : Type ): Int = tp.widenExpr.stripPoly match
91
- case mt @ MethodType (pnames) =>
92
- val rest = normalParamCount(mt.resType)
93
- if mt.hasErasedParams then
94
- mt.nonErasedParamCount + rest
95
- else pnames.length + rest
92
+ case mt @ MethodType (pnames) => mt.nonErasedParamCount + normalParamCount(mt.resType)
96
93
case _ => contextParamCount(tp, contextResultCount(sym))
97
94
98
95
normalParamCount(sym.info)
You can’t perform that action at this time.
0 commit comments