@@ -16,20 +16,20 @@ import Expressions.CallArgs
1616
1717from FunctionValue base , PythonFunctionValue derived
1818where
19- not exists ( base .getACall ( ) ) and
20- not exists ( FunctionValue a_derived |
21- a_derived .overrides ( base ) and
22- exists ( a_derived .getACall ( ) )
23- ) and
24- not derived .getScope ( ) .isSpecialMethod ( ) and
25- derived .getName ( ) != "__init__" and
26- derived .isNormalMethod ( ) and
27- not derived .getScope ( ) .isSpecialMethod ( ) and
28- // call to overrides distributed for efficiency
29- (
30- derived .overrides ( base ) and derived .minParameters ( ) > base .maxParameters ( )
31- or
32- derived .overrides ( base ) and derived .maxParameters ( ) < base .minParameters ( )
33- )
19+ not exists ( base .getACall ( ) ) and
20+ not exists ( FunctionValue a_derived |
21+ a_derived .overrides ( base ) and
22+ exists ( a_derived .getACall ( ) )
23+ ) and
24+ not derived .getScope ( ) .isSpecialMethod ( ) and
25+ derived .getName ( ) != "__init__" and
26+ derived .isNormalMethod ( ) and
27+ not derived .getScope ( ) .isSpecialMethod ( ) and
28+ // call to overrides distributed for efficiency
29+ (
30+ derived .overrides ( base ) and derived .minParameters ( ) > base .maxParameters ( )
31+ or
32+ derived .overrides ( base ) and derived .maxParameters ( ) < base .minParameters ( )
33+ )
3434select derived , "Overriding method '" + derived .getName ( ) + "' has signature mismatch with $@." ,
35- base , "overridden method"
35+ base , "overridden method"
0 commit comments