diff --git a/src/aeso_ast_infer_types.erl b/src/aeso_ast_infer_types.erl index a842cc3..9376129 100644 --- a/src/aeso_ast_infer_types.erl +++ b/src/aeso_ast_infer_types.erl @@ -1785,7 +1785,7 @@ solve_known_record_types(Env, Constraints) -> C end; _ -> - type_error({not_a_record_type, RecType, When}), + type_error({not_a_record_type, instantiate(RecType), When}), not_solved end end