diff options
author | Paul Phillips <paulp@improving.org> | 2012-02-21 19:27:22 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-02-21 19:27:22 -0800 |
commit | 9f96227ed9dd25cbcb754fc8cbb1013d4e48badf (patch) | |
tree | dae10bedecd7fe62697b0bcce312dee69ede95c8 /src/compiler | |
parent | a2abc2c929c2ab92f5522aa3966326eb9743d62d (diff) | |
parent | fa8ef34b9b952e8f354d45a02b6e1ea70e083eec (diff) | |
download | scala-9f96227ed9dd25cbcb754fc8cbb1013d4e48badf.tar.gz scala-9f96227ed9dd25cbcb754fc8cbb1013d4e48badf.tar.bz2 scala-9f96227ed9dd25cbcb754fc8cbb1013d4e48badf.zip |
Merge remote-tracking branch 'soc/SI-5034' into develop
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala index 35db38ae77..92e9f54190 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -1451,26 +1451,6 @@ abstract class RefChecks extends InfoTransform with reflect.internal.transform.R transform(qual) - case Apply(Select(New(tpt), name), args) - if (tpt.tpe.typeSymbol == ArrayClass && args.length >= 2) => - unit.deprecationWarning(tree.pos, - "new Array(...) with multiple dimensions has been deprecated; use Array.ofDim(...) instead") - val manif = { - var etpe = tpt.tpe - for (_ <- args) { etpe = etpe.typeArgs.headOption.getOrElse(NoType) } - if (etpe == NoType) { - unit.error(tree.pos, "too many dimensions for array creation") - Literal(Constant(null)) - } else { - localTyper.getManifestTree(tree, etpe, false) - } - } - val newResult = localTyper.typedPos(tree.pos) { - new ApplyToImplicitArgs(gen.mkMethodCall(ArrayModule, nme.ofDim, args), List(manif)) - } - currentApplication = tree - newResult - case Apply(fn, args) => checkSensible(tree.pos, fn, args) currentApplication = tree |