mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
gir: Fix assignable_to for template types
If we don't know the template's parent type, we should be able to assign it to an extern type, since we don't know anything about that either.
This commit is contained in:
parent
3a712af4dd
commit
24eed1048e
1 changed files with 1 additions and 1 deletions
|
@ -721,7 +721,7 @@ class TemplateType(GirType):
|
||||||
# we don't know the template type's interfaces, assume yes
|
# we don't know the template type's interfaces, assume yes
|
||||||
return True
|
return True
|
||||||
elif self.parent is None or isinstance(self.parent, ExternType):
|
elif self.parent is None or isinstance(self.parent, ExternType):
|
||||||
return isinstance(other, Class)
|
return isinstance(other, Class) or isinstance(other, ExternType)
|
||||||
else:
|
else:
|
||||||
return self.parent.assignable_to(other)
|
return self.parent.assignable_to(other)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue