diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-01-17 16:37:24 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-01-17 16:37:24 +0100 |
commit | ca05d22006dd528eae26c8ab4d6ca0a4f27fb69f (patch) | |
tree | 3f62a3a92102fe9538d558b1ca9722721502714d /test/files/neg/t4831.scala | |
parent | a5b0fc49e517d1c63d22f9909ac9bed0552ed466 (diff) | |
download | scala-ca05d22006dd528eae26c8ab4d6ca0a4f27fb69f.tar.gz scala-ca05d22006dd528eae26c8ab4d6ca0a4f27fb69f.tar.bz2 scala-ca05d22006dd528eae26c8ab4d6ca0a4f27fb69f.zip |
SI-8157 Make overloading, defaults restriction PolyType aware
Named/Default args levies an implementation restriction that
only one overloaded alternative may declare defaults.
But, this restriction failed to consider polymorphic methods.
Rather than matching on MethodType, this commit uses `Type#paramms`,
which handles PolyTypes and curried MethodTypes in one fell swoop.
Diffstat (limited to 'test/files/neg/t4831.scala')
0 files changed, 0 insertions, 0 deletions