Explorer

core.type-error

description
Definy type checker error diagnostics. located wraps an error with the innermost expression where it was found
type
Type
expression
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})
}
visibility
public
core.type-error (project definy, branch quote-encoded-parts, snapshot LbKb9vIRs5vdtsu6TiOqZ_NMUZJ6k1s6WlbZOc6x3-I)
id: 25g8km4CFCoY_hi400MCHFghhSctVs5rqqosyA_BGYo
content hash: tpwGfmgIHkZi3MiLIctnJ6uCZUDeyLSyo1BaDJmerzQ