mirror of https://github.com/m-labs/artiq.git
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:
|
if typ in self.type_map:
|
||||||
instance_type, constructor_type = self.type_map[typ]
|
instance_type, constructor_type = self.type_map[typ]
|
||||||
else:
|
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))
|
instance_type.attributes['__objectid__'] = builtins.TInt(types.TValue(32))
|
||||||
|
|
||||||
constructor_type = types.TConstructor(instance_type)
|
constructor_type = types.TConstructor(instance_type)
|
||||||
|
|
Loading…
Reference in New Issue