Commit 752f23f0 authored by Xavier Thompson's avatar Xavier Thompson

Ignore const qualifier in cypclass 'is_subclass' test

parent f8bb2a90
...@@ -4501,6 +4501,11 @@ class CypClassType(CppClassType): ...@@ -4501,6 +4501,11 @@ class CypClassType(CppClassType):
return 1 return 1
return super(CypClassType, self).assignable_from_resolved_type(other_type) return super(CypClassType, self).assignable_from_resolved_type(other_type)
def is_subclass(self, other_type):
if other_type.is_const_cyp_class:
other_type = other_type.const_base_type
return super(CypClassType, self).is_subclass(other_type)
def get_constructor(self, pos): def get_constructor(self, pos):
# This is (currently) only called by new statements. # This is (currently) only called by new statements.
# In cypclass, it means direct memory allocation: # In cypclass, it means direct memory allocation:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment