From 6b55e3bd80f7bb2510b9a7a892aeb5fa191f5c39 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 28 Aug 2015 01:14:19 -0500 Subject: [PATCH] compiler.embedding: use qualified name when embedding methods. --- artiq/compiler/embedding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/embedding.py b/artiq/compiler/embedding.py index 6910f185e..141d9eca1 100644 --- a/artiq/compiler/embedding.py +++ b/artiq/compiler/embedding.py @@ -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)