@@ -875,7 +875,7 @@ object Objects:
875
875
* @param ctor The symbol of the target constructor.
876
876
* @param args The arguments passsed to the constructor.
877
877
*/
878
- 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) {
878
+ 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) {
879
879
outer match
880
880
881
881
case _ : Fun | _ : OfArray =>
@@ -914,7 +914,7 @@ object Objects:
914
914
instance
915
915
916
916
case ValueSet (values) =>
917
- values.map(ref => instantiate(ref, klass, ctor, args, inKlass )).join
917
+ values.map(ref => instantiate(ref, klass, ctor, args)).join
918
918
}
919
919
920
920
/** Handle local variable definition, `val x = e` or `var x = e`.
@@ -1088,7 +1088,7 @@ object Objects:
1088
1088
val cls = tref.classSymbol.asClass
1089
1089
withTrace(trace2) {
1090
1090
val outer = outerValue(tref, thisV, klass)
1091
- instantiate(outer, cls, ctor, args, klass )
1091
+ instantiate(outer, cls, ctor, args)
1092
1092
}
1093
1093
1094
1094
case Apply (ref, arg :: Nil ) if ref.symbol == defn.InitRegionMethod =>
0 commit comments