Skip to main content

Error codes

Error codeError description
M0001Parsing errors
M0009File not found for import
M0010Imported package was not defined
M0014Non-static expression in library or module
M0029Unbound type
M0030Type field does not exist in type
M0031Shared function has non-shared parameter type
M0032Shared function has non-shared return type
M0033Async has non-shared content type
M0036Invalid return type for shared query function
M0038Misplaced await
M0045Wrong number of type arguments
M0047Send capability required
M0050Literal does not have expected type
M0055Cannot infer type of forward variable
M0057Unbound variable
M0060Operator is not defined for operand types
M0064Misplaced '!' without enclosing do block
M0070Expected object type
M0072Field does not exist in type
M0073Expected mutable assignment target
M0082Expected iterable type
M0088Expected async type
M0089Redundant ignore
M0090Actor reference must have an actor type
M0096Expression can't produce expected type
M0097Expected function type
M0098Cannot instantiate function type
M0112Tuple pattern cannot consume type
M0116Variant pattern cannot consume type
M0126Shared function cannot be private
M0139Inner actor classes are not supported
M0141Forbidden declaration in program
M0145Pattern does not cover value
M0154Deprecation annotation
M0155Inferred type Nat for subtraction