@@ -876,7 +876,7 @@ object Objects:
876
876
* @param ctor The symbol of the target constructor.
877
877
* @param args The arguments passsed to the constructor.
878
878
*/
879
- def instantiate (outer : Value , klass : ClassSymbol , ctor : Symbol , args : List [ArgInfo ], inKlass : ClassSymbol ): Contextual [Value ] = log(" instantiating " + klass.show + " , outer = " + outer + " , args = " + args.map(_.value.show), printer, (_ : Value ).show) {
879
+ def instantiate (outer : Value , klass : ClassSymbol , ctor : Symbol , args : List [ArgInfo ]): Contextual [Value ] = log(" instantiating " + klass.show + " , outer = " + outer + " , args = " + args.map(_.value.show), printer, (_ : Value ).show) {
880
880
outer match
881
881
882
882
case _ : Fun | _ : OfArray =>
@@ -915,7 +915,7 @@ object Objects:
915
915
instance
916
916
917
917
case ValueSet (values) =>
918
- values.map(ref => instantiate(ref, klass, ctor, args, inKlass )).join
918
+ values.map(ref => instantiate(ref, klass, ctor, args)).join
919
919
}
920
920
921
921
/** Handle local variable definition, `val x = e` or `var x = e`.
@@ -1089,7 +1089,7 @@ object Objects:
1089
1089
val cls = tref.classSymbol.asClass
1090
1090
withTrace(trace2) {
1091
1091
val outer = outerValue(tref, thisV, klass)
1092
- instantiate(outer, cls, ctor, args, klass )
1092
+ instantiate(outer, cls, ctor, args)
1093
1093
}
1094
1094
1095
1095
case Apply (ref, arg :: Nil ) if ref.symbol == defn.InitRegionMethod =>
0 commit comments