diff options
author | Martin Odersky <odersky@gmail.com> | 2014-04-21 18:10:25 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-05-08 21:51:46 +0200 |
commit | 782c24ff51865e43e34a2485dc585a757ada2c3b (patch) | |
tree | b4aab29f24af18dd4ab428c2e8169cf8fc320be2 /tests/untried/pos/t3568.scala | |
parent | 35366df3bed1e2a13aa41abfd0f75c7241f22197 (diff) | |
download | dotty-782c24ff51865e43e34a2485dc585a757ada2c3b.tar.gz dotty-782c24ff51865e43e34a2485dc585a757ada2c3b.tar.bz2 dotty-782c24ff51865e43e34a2485dc585a757ada2c3b.zip |
Changed handling of repeated parameters.
Previously, repeated parameters were typed as `<repeated>[T]`. The
method `underlyingWithRepeated` converts `<repeated>[T]` to `Seq[T]`.
This method was called in typedIdent, but the call was ineffective
because the type of a repeated parameter ident is a TermRef. This led
to a retyping error in Decorators.scala under -Ycheck:front.
We now distinguish between the type of the internal parameter ValDef
and the type of the parameter in the MethodType. The former has the type
`Seq[T] @dotty.annotation.internal.repeated`, the latter has the type
`<repeated>[T]`. The translation with `underlyingWithRepeated` thus
becomes unneccessary.
Diffstat (limited to 'tests/untried/pos/t3568.scala')
0 files changed, 0 insertions, 0 deletions