diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2016-03-30 17:27:41 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2016-04-18 14:46:57 +0200 |
commit | c74bb42251eb233c858810d83300ba78876a2b2c (patch) | |
tree | 61dd238b9103b9813e907faa69b77c8f47654b6e /src/dotty/tools/dotc/typer/Typer.scala | |
parent | 9d7db0c2fff12420f7ef37119746860622e40387 (diff) | |
download | dotty-c74bb42251eb233c858810d83300ba78876a2b2c.tar.gz dotty-c74bb42251eb233c858810d83300ba78876a2b2c.tar.bz2 dotty-c74bb42251eb233c858810d83300ba78876a2b2c.zip |
Separate handling of genericArray creation from normal ones.
This allowed to simplify the code in both Applications and tpd.newArray.
Now, only creation of generic arrays is handled by typer.
All other arrays are handled in ArrayConstructors phase.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Typer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index 2575dbec2..53296f9c9 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -1684,7 +1684,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit case _ => Nil } if (typeArgs.isEmpty) typeArgs = constrained(poly, tree)._2 - convertNewArray( + convertNewGenericArray( adaptInterpolated(tree.appliedToTypes(typeArgs), pt, original)) } case wtp => |