@@ -875,7 +875,7 @@ object Objects:
875875 * @param ctor The symbol of the target constructor.
876876 * @param args The arguments passsed to the constructor.
877877 */
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) {
879879 outer match
880880
881881 case _ : Fun | _ : OfArray =>
@@ -914,7 +914,7 @@ object Objects:
914914 instance
915915
916916 case ValueSet (values) =>
917- values.map(ref => instantiate(ref, klass, ctor, args, inKlass )).join
917+ values.map(ref => instantiate(ref, klass, ctor, args)).join
918918 }
919919
920920 /** Handle local variable definition, `val x = e` or `var x = e`.
@@ -1088,7 +1088,7 @@ object Objects:
10881088 val cls = tref.classSymbol.asClass
10891089 withTrace(trace2) {
10901090 val outer = outerValue(tref, thisV, klass)
1091- instantiate(outer, cls, ctor, args, klass )
1091+ instantiate(outer, cls, ctor, args)
10921092 }
10931093
10941094 case Apply (ref, arg :: Nil ) if ref.symbol == defn.InitRegionMethod =>
0 commit comments