diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-07-14 02:58:29 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-07-14 02:58:29 +0200 |
commit | ef979c02da887b7c56bc1da9c4eb888e92af570f (patch) | |
tree | 2e105d3a0c3374875bede127dd6afaf7a1c88715 /src/build/pack.xml | |
parent | 2247593472031fd9712b652bab0b978a788e46ef (diff) | |
download | scala-ef979c02da887b7c56bc1da9c4eb888e92af570f.tar.gz scala-ef979c02da887b7c56bc1da9c4eb888e92af570f.tar.bz2 scala-ef979c02da887b7c56bc1da9c4eb888e92af570f.zip |
SI-7657 clarifies the "macro overrides method" rule
Currently we allow macros to override non-abstract methods (in order
to provide performance enhancements such as foreach for collections),
and we also disallow macros to override abstract methods (otherwise
downcasting might lead to AbstractMethodErrors).
This patch fixes an oversight in the disallowing rule that prohibited
macros from overriding a concrete method if that concrete method itself
overrides an abstract method. RefCheck entertains all overriding pairs,
not only the immediate ones, so the disallowing rule was triggered.
Now macros can override abstract methods if and only if either the base
type or the self type contain a matching non-abstract method.
Diffstat (limited to 'src/build/pack.xml')
0 files changed, 0 insertions, 0 deletions