We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24e3fa0 commit f292ac5Copy full SHA for f292ac5
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -351,6 +351,7 @@ object desugar {
351
val Function(vparams: List[untpd.ValDef] @unchecked, rhs) = fun: @unchecked
352
val newParamss = paramssNoContextBounds(tparams :: vparams :: Nil)
353
val params = evidenceParamBuf.toList
354
+ if params.isEmpty then return meth
355
val boundNames = getBoundNames(params, newParamss)
356
val recur = fitEvidenceParams(params, nme.apply, boundNames)
357
val (paramsFst, paramsSnd) = recur(newParamss)
0 commit comments