Skip to content

Commit

Permalink
compiler.embedding: use qualified name when embedding methods.
Browse files Browse the repository at this point in the history
whitequark committed Aug 28, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 13e612c commit 6b55e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/compiler/embedding.py
Original file line number Diff line number Diff line change
@@ -101,7 +101,7 @@ def quote(self, value):
if typ in self.type_map:
instance_type, constructor_type = self.type_map[typ]
else:
instance_type = types.TInstance("{}.{}".format(typ.__module__, typ.__name__))
instance_type = types.TInstance("{}.{}".format(typ.__module__, typ.__qualname__))
instance_type.attributes['__objectid__'] = builtins.TInt(types.TValue(32))

constructor_type = types.TConstructor(instance_type)

0 comments on commit 6b55e3b

Please sign in to comment.