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 {
4516
4516
// [Eugene] no more MaxArrayDims. ClassTags are flexible enough to allow creation of arrays of arbitrary dimensionality (w.r.t JVM restrictions)
4517
4517
val Some ((level, componentType)) = erasure.GenericArray .unapply(tpt.tpe)
4518
4518
val tagType = List .iterate(componentType, level)(tpe => appliedType(ArrayClass .toTypeConstructor, List (tpe))).last
4519
- val newArrayApp = atPos(tree.pos) {
4519
+ atPos(tree.pos) {
4520
4520
val tag = resolveClassTag(tree.pos, tagType)
4521
4521
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) )
4523
4523
}
4524
- typed(newArrayApp, mode, pt)
4525
4524
case Apply (Select (fun, nme.apply), _) if treeInfo.isSuperConstrCall(fun) => // SI-5696
4526
4525
TooManyArgumentListsForConstructor (tree)
4527
4526
case tree1 =>
You can’t perform that action at this time.
0 commit comments