tests: Test custom types in lookup expressions

This commit is contained in:
James Westman 2022-04-30 16:13:40 -05:00
parent 76a482affb
commit cd33266452
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
11 changed files with 93 additions and 7 deletions

View file

@ -70,7 +70,7 @@ class UI(AstNode, Scope):
xml.end_tag()
return {
id: ScopeVariable(id, obj.gir_class, lambda xml: emit_xml(xml, id))
id: ScopeVariable(id, obj.gir_class, lambda xml, id=id: emit_xml(xml, id), obj.glib_type_name)
for id, obj in self.objects_by_id.items()
}