File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
test/query-tests/Functions Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 14
14
import python
15
15
import Expressions.CallArgs
16
16
17
- from FunctionObject base , PyFunctionObject derived
17
+ from FunctionValue base , PythonFunctionValue derived
18
18
where
19
19
not exists ( base .getACall ( ) ) and
20
- not exists ( FunctionObject a_derived |
20
+ not exists ( FunctionValue a_derived |
21
21
a_derived .overrides ( base ) and
22
22
exists ( a_derived .getACall ( ) )
23
23
) and
24
- not derived .getFunction ( ) .isSpecialMethod ( ) and
24
+ not derived .getScope ( ) .isSpecialMethod ( ) and
25
25
derived .getName ( ) != "__init__" and
26
26
derived .isNormalMethod ( ) and
27
- not derived .getFunction ( ) .isSpecialMethod ( ) and
27
+ not derived .getScope ( ) .isSpecialMethod ( ) and
28
28
// call to overrides distributed for efficiency
29
29
(
30
30
derived .overrides ( base ) and derived .minParameters ( ) > base .maxParameters ( )
Original file line number Diff line number Diff line change 1
- | om_test.py:32:5:32:35 | Function grossly_wrong1 | Overriding method 'grossly_wrong1' has signature mismatch with $@. | om_test.py:12:5:12:41 | Function grossly_wrong1 | overridden method |
2
- | om_test.py:35:5:35:47 | Function grossly_wrong2 | Overriding method 'grossly_wrong2' has signature mismatch with $@. | om_test.py:15:5:15:41 | Function grossly_wrong2 | overridden method |
1
+ | om_test.py:32:5:32:35 | Function Derived. grossly_wrong1 | Overriding method 'grossly_wrong1' has signature mismatch with $@. | om_test.py:12:5:12:41 | Function Base. grossly_wrong1 | overridden method |
2
+ | om_test.py:35:5:35:47 | Function Derived. grossly_wrong2 | Overriding method 'grossly_wrong2' has signature mismatch with $@. | om_test.py:15:5:15:41 | Function Base. grossly_wrong2 | overridden method |
Original file line number Diff line number Diff line change 1
- | test.py:30:5:30:26 | Function meth3 | Overriding method 'meth3' has signature mismatch with $@. | test.py:11:5:11:20 | Function meth3 | overridden method |
1
+ | test.py:30:5:30:26 | Function Derived. meth3 | Overriding method 'meth3' has signature mismatch with $@. | test.py:11:5:11:20 | Function Base. meth3 | overridden method |
You can’t perform that action at this time.
0 commit comments