aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/new-array.scala
Commit message (Collapse)AuthorAgeFilesLines
* Change scheme of translating array creations new Array(...)Martin Odersky2015-03-181-1/+2
| | | | | | | | | | The previous scheme generated too many newGenericArray expressions because at the time newArray was called, the type arguments were not yet determined. Furthermore, the type variables somehow did not have the right positions, which caused them not to be interpolated and led to orphan PolyParams. The new scheme converts the expression when the length parameter has been supplied and it fully determines the array type before converting.
* Previous scheme was buggy; leaked Array types to backend.Martin Odersky2014-11-281-0/+14
Now: All new Array[T] methods are translated to calls of the form dotty.Arrays.newXYZArray ...