@@ -85,7 +85,7 @@ object MainProxies {
85
85
report.error(s " method cannot have multiple main annotations " , mainAnnot.tree)
86
86
Nil
87
87
}
88
- case stat @ TypeDef (name , impl : Template ) if stat.symbol.is(Module ) =>
88
+ case stat @ TypeDef (_ , impl : Template ) if stat.symbol.is(Module ) =>
89
89
mainMethods(stat, impl.body)
90
90
case _ =>
91
91
Nil
@@ -144,8 +144,6 @@ object MainProxies {
144
144
// The ParameterInfos to be passed to the arg getter
145
145
val parameterInfos = {
146
146
val param = paramName.toString
147
- val paramInfosName = argName ++ " paramInfos"
148
- val paramInfosIdent = Ident (paramInfosName)
149
147
val paramInfosTree = New (
150
148
AppliedTypeTree (TypeTree (defn.MainAnnotParameterInfos .typeRef), List (TypeTree (formalType))),
151
149
// Arguments to be passed to ParameterInfos' constructor
@@ -196,7 +194,7 @@ object MainProxies {
196
194
def extractArgs (args : List [tpd.Tree ]): List [Tree ] =
197
195
args.flatMap {
198
196
case Typed (SeqLiteral (varargs, _), _) => varargs.map(arg => TypedSplice (arg))
199
- case arg @ Select (_, name) => if name.is(DefaultGetterName ) then List () else List ( TypedSplice (arg))
197
+ case arg @ Select (_, name) if name.is(DefaultGetterName ) => List () // Ignore default values, they will be added later by the compiler
200
198
case arg => List (TypedSplice (arg))
201
199
}
202
200
0 commit comments