File tree 1 file changed +10
-6
lines changed
compiler/src/dotty/tools/dotc/ast
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -393,14 +393,18 @@ object desugar {
393
393
rhs
394
394
cpy.TypeDef (tparam)(rhs = dropInRhs(tparam.rhs))
395
395
396
- def paramssNoRHS = mapParamss(meth.paramss)(identity): vparam =>
397
- if vparam.rhs.isEmpty then vparam
398
- else cpy.ValDef (vparam)(rhs = EmptyTree ).withMods(vparam.mods | HasDefault )
396
+ def paramssNoRHS = mapParamss(meth.paramss)(identity) {
397
+ vparam =>
398
+ if vparam.rhs.isEmpty then vparam
399
+ else cpy.ValDef (vparam)(rhs = EmptyTree ).withMods(vparam.mods | HasDefault )
400
+ }
399
401
400
402
def getterParamss (n : Int ): List [ParamClause ] =
401
- mapParamss(takeUpTo(paramssNoRHS, n))
402
- (tparam => dropContextBounds(toMethParam(tparam, KeepAnnotations .All )))
403
- (vparam => toMethParam(vparam, KeepAnnotations .All , keepDefault = false ))
403
+ mapParamss(takeUpTo(paramssNoRHS, n)) {
404
+ tparam => dropContextBounds(toMethParam(tparam, KeepAnnotations .All ))
405
+ } {
406
+ vparam => toMethParam(vparam, KeepAnnotations .All , keepDefault = false )
407
+ }
404
408
405
409
def defaultGetters (paramss : List [ParamClause ], n : Int ): List [DefDef ] = paramss match
406
410
case ValDefs (vparam :: vparams) :: paramss1 =>
You can’t perform that action at this time.
0 commit comments