Union{
#type_mismatch(Record{expected: @core.type-ast, actual: @core.type-ast}),
#undefined_variable(Record{variable_id: Number}),
#not_a_function(Record{actual: @core.type-ast}),
#function_not_called(Record{actual: @core.type-ast}),
#unexpected_function(Record{expected: @core.type-ast}),
#not_a_record(Record{actual: @core.type-ast}),
#not_a_union(Record{actual: @core.type-ast}),
#not_a_list(Record{actual: @core.type-ast}),
#variant_not_found(Record{tag: String}),
#non_exhaustive_match(Record{missing_tag: String}),
#field_not_found(Record{key: String}),
#cannot_infer_empty_list,
#part_not_found(Record{part_definition_event_hash: String}),
#invalid_type_declaration(Record{message: String}),
#unknown_error,
#unfilled_hole,
#hole_expected_type(Record{
expected: Union{#none, #some(@core.type-ast)},
inferred_type_argument: Union{#none, #some(@core.type-ast)}
}),
#located(Record{expression: @core.expression, error: @core.type-error})
}