Skip to content

Commit

Permalink
fix #1317
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Oct 3, 2012
1 parent 714ffdb commit f996b03
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,17 @@ jl_value_t *jl_prepare_ast(jl_lambda_info_t *li, jl_tuple_t *sparams)
ast = jl_uncompress_ast((jl_tuple_t*)ast);
spenv = jl_tuple_tvars_to_symbols(sparams);
ast = copy_ast(ast, sparams, 1);
eval_decl_types(jl_lam_vinfo((jl_expr_t*)ast), spenv);
eval_decl_types(jl_lam_capt((jl_expr_t*)ast), spenv);
jl_module_t *last_m = jl_current_module;
JL_TRY {
jl_current_module = li->module;
eval_decl_types(jl_lam_vinfo((jl_expr_t*)ast), spenv);
eval_decl_types(jl_lam_capt((jl_expr_t*)ast), spenv);
}
JL_CATCH {
jl_current_module = last_m;
jl_raise(jl_exception_in_transit);
}
jl_current_module = last_m;
JL_GC_POP();
return ast;
}

0 comments on commit f996b03

Please sign in to comment.