diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-10 02:04:26 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-10 02:04:26 +0200 |
commit | 2f0b026a44eccc9b2a55ed70f72bd91c935897d4 (patch) | |
tree | 14863169fc5f6cd9f2f5b4ab394dd54f1887f55a /py/compile.c | |
parent | 76f06de96dbdc4274eb059efe1ce2020f9921835 (diff) |
Clean up handling of function return type annotation.
Diffstat (limited to 'py/compile.c')
-rw-r--r-- | py/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/compile.c b/py/compile.c index 1abe08c43..521c5290c 100644 --- a/py/compile.c +++ b/py/compile.c @@ -2764,7 +2764,7 @@ void compile_scope(compiler_t *comp, scope_t *scope, pass_kind_t pass) { apply_to_single_or_list(comp, pns->nodes[1], PN_typedargslist, compile_scope_func_param); } - assert(MP_PARSE_NODE_IS_NULL(pns->nodes[2])); // 2 is something... + // pns->nodes[2] is return/whole function annotation compile_node(comp, pns->nodes[3]); // 3 is function body // emit return if it wasn't the last opcode |