Commit ebf0462f authored by Tom Niget's avatar Tom Niget

Fix out of order support

parent 7013323d
# coding: utf-8
class class1:
def method1(self):
print("class1::method1()")
def function1():
r = function2()
print("function1()")
return r
def function2():
print("function2")
return class1()
def function1():
r = function2()
print("function1()")
return r
class class1:
def method1(self):
print("class1::method1()")
class class2(class1):
def method2(self):
......
# coding: utf-8
# todo
\ No newline at end of file
......@@ -70,7 +70,9 @@ def emit_function(name: str, func: CallableInstanceType, base="function", gen_p=
def task_type():
yield from NodeVisitor().visit_BaseType(func.return_type.generic_parent)
yield "<"
yield"decltype(typon$$sync("
yield"decltype(typon$$sync<"
yield from join(",", (p.name for p in func.generic_parent.parameters))
yield ">("
yield from join(",", (arg.arg for arg in func.block_data.node.args.args))
yield "))"
yield ">"
......
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