diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-02-10 21:59:11 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-02-10 21:59:11 +0000 |
| commit | e8d2c3cf6cf835af79d09893a367f25d5ef487cd (patch) | |
| tree | 3bbe5cedfacb6d52637d22e1cbb0139a0c2a9594 /py/compile.c | |
| parent | d46ca25757b9021809946bb7274376c410b699eb (diff) | |
| parent | 2f0b026a44eccc9b2a55ed70f72bd91c935897d4 (diff) | |
Merge pull request #267 from pfalcon/func-ret-ann
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 |
