Fix __repr__, __qualname__ (#2977)

This commit is contained in:
Lee Dogeon 2021-08-27 23:07:10 +09:00 committed by GitHub
parent 3289b9ccb4
commit ca37219aff

View file

@ -1021,8 +1021,8 @@ impl Compiler {
}; };
let qualified_name = self.create_qualified_name(name, ""); let qualified_name = self.create_qualified_name(name, "");
let old_qualified_path = self.current_qualified_path.take(); let old_qualified_path = self.current_qualified_path.replace(qualified_name.clone());
self.current_qualified_path = Some(self.create_qualified_name(name, ".<locals>")); self.current_qualified_path = Some(self.create_qualified_name("<locals>", ""));
let (body, doc_str) = get_doc(body); let (body, doc_str) = get_doc(body);