Skip to main content

Error Codes

This section documents all Starstream compiler error codes. Each error code links to a detailed explanation with examples and suggestions for how to fix the issue.

Type Errors

CodeDescription
E0001Unknown variable
E0002Variable redeclaration
E0003Assignment type mismatch
E0004Assignment to immutable variable
E0005Unary operator type mismatch
E0006Binary operator type mismatch
E0007Condition is not a boolean
E0008General type mismatch
E0009Return type mismatch
E0010Missing return statement
E0011Unknown type annotation
E0012Type already defined
E0013Function already defined
E0014Duplicate struct field
E0015Duplicate enum variant
E0016Unknown struct
E0017Unknown enum
E0018Unknown struct field
E0019Duplicate field in struct literal
E0020Missing struct field
E0021Field access on non-struct
E0022Unknown field access
E0023Unknown enum variant
E0024Enum payload mismatch
E0025Pattern enum mismatch
E0026Unsupported type feature
E0027Non-exhaustive match
E0028Unreachable pattern
E0029Not a function
E0030Wrong number of arguments
E0031Argument type mismatch