File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/compiler/scala/tools/nsc/typechecker Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4516,12 +4516,11 @@ trait Typers extends Modes with Adaptations with Tags {
45164516 // [Eugene] no more MaxArrayDims. ClassTags are flexible enough to allow creation of arrays of arbitrary dimensionality (w.r.t JVM restrictions)
45174517 val Some ((level, componentType)) = erasure.GenericArray .unapply(tpt.tpe)
45184518 val tagType = List .iterate(componentType, level)(tpe => appliedType(ArrayClass .toTypeConstructor, List (tpe))).last
4519- val newArrayApp = atPos(tree.pos) {
4519+ atPos(tree.pos) {
45204520 val tag = resolveClassTag(tree.pos, tagType)
45214521 if (tag.isEmpty) MissingClassTagError (tree, tagType)
4522- else new ApplyToImplicitArgs (Select (tag, nme.newArray), args)
4522+ else typed( new ApplyToImplicitArgs (Select (tag, nme.newArray), args) )
45234523 }
4524- typed(newArrayApp, mode, pt)
45254524 case Apply (Select (fun, nme.apply), _) if treeInfo.isSuperConstrCall(fun) => // SI-5696
45264525 TooManyArgumentListsForConstructor (tree)
45274526 case tree1 =>
You can’t perform that action at this time.
0 commit comments