File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ def is_same_return_type( f1, f2 ):
27
27
# cv-qualification than the class type in the return type of B::f.
28
28
29
29
if not f1 .__class__ is f2 .__class__ :
30
+ #it should be assert
30
31
return False #2 different calldef types
31
32
if not isinstance ( f1 , calldef .member_calldef_t ):
32
33
#for free functions we compare return types as usual
@@ -58,7 +59,8 @@ def is_same_return_type( f1, f2 ):
58
59
if c1 .class_type == class_declaration .CLASS_TYPES .UNION \
59
60
or c2 .class_type == class_declaration .CLASS_TYPES .UNION :
60
61
return type_traits .is_same ( rt1 , rt2 )
61
- return type_traits .is_base_and_derived ( c1 , c2 ) \
62
+ return type_traits .is_same ( c1 , c2 ) \
63
+ or type_traits .is_base_and_derived ( c1 , c2 ) \
62
64
or type_traits .is_base_and_derived ( c2 , c1 )
63
65
64
66
You can’t perform that action at this time.
0 commit comments