Commit 490e4abc authored by Tom Niget's avatar Tom Niget

Fix type name emission for non-reference user types (enums)

parent c7a7c9a0
......@@ -67,7 +67,11 @@ class NodeVisitor(UniversalVisitor):
elif node is TY_STR:
yield "PyStr"
elif isinstance(node, UserType):
yield f"PyObj<decltype({node.name})>"
if node.is_reference:
yield "PyObj<"
yield f"decltype({node.name})"
if node.is_reference:
yield "::py_type>"
elif isinstance(node, TypeType):
yield "auto" # TODO
elif isinstance(node, FunctionType):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment