@@ -16,20 +16,20 @@ import Expressions.CallArgs
16
16
17
17
from FunctionValue base , PythonFunctionValue derived
18
18
where
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
+ )
34
34
select derived , "Overriding method '" + derived .getName ( ) + "' has signature mismatch with $@." ,
35
- base , "overridden method"
35
+ base , "overridden method"
0 commit comments