summaryrefslogtreecommitdiff
path: root/test/files/run/t7657.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-7657 clarifies the "macro overrides method" ruleEugene Burmako2013-07-141-0/+3
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.