forked from M-Labs/artiq
compiler.embedding: use qualified name when embedding methods.
This commit is contained in:
parent
13e612c11b
commit
6b55e3bd80
@ -101,7 +101,7 @@ class ASTSynthesizer:
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user