AstType *old_return_type = ft->return_type;
ft->return_type = (AstType *) &basic_type_void;
ft->partial_function_type = type_build_from_ast(context.ast_alloc, (AstType *) ft);
+ ft->return_type = old_return_type;
if (!ft->partial_function_type) {
doing_nested_polymorph_lookup = 1;
return NULL;
}
assert(ft->partial_function_type);
- ft->return_type = old_return_type;
}
AstTyped *result = (AstTyped *) polymorphic_proc_lookup(pp, PPLM_By_Function_Type, ft->partial_function_type, pp->token);