Commit 287172b4 authored by John van Groningen's avatar John van Groningen
Browse files

prevent compiler crash when importing a generic function definition of a non...

prevent compiler crash when importing a generic function definition of a non generic representation type,
for which shorthand instances are generated
parent 4fbe6fb1
......@@ -1989,6 +1989,8 @@ where
= case gcf_body of
GCB_FunIndex fun_index
-> fun_index
GCB_FunAndMacroIndex fun_index macro_index
-> fun_index
= foldSt (build_shorthand_instance gc_ident kinds gcf_generic fun_index gc_type gc_type_cons gc_pos module_index) [1 .. length kinds] st
where
build_shorthand_instance gc_ident kinds gcf_generic fun_index gc_type gc_type_cons gc_pos module_index num_args
......
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