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
| Code | Description |
|---|---|
| E0001 | Unknown variable |
| E0002 | Variable redeclaration |
| E0003 | Assignment type mismatch |
| E0004 | Assignment to immutable variable |
| E0005 | Unary operator type mismatch |
| E0006 | Binary operator type mismatch |
| E0007 | Condition is not a boolean |
| E0008 | General type mismatch |
| E0009 | Return type mismatch |
| E0010 | Missing return statement |
| E0011 | Unknown type annotation |
| E0012 | Type already defined |
| E0013 | Function already defined |
| E0014 | Duplicate struct field |
| E0015 | Duplicate enum variant |
| E0016 | Unknown struct |
| E0017 | Unknown enum |
| E0018 | Unknown struct field |
| E0019 | Duplicate field in struct literal |
| E0020 | Missing struct field |
| E0021 | Field access on non-struct |
| E0022 | Unknown field access |
| E0023 | Unknown enum variant |
| E0024 | Enum payload mismatch |
| E0025 | Pattern enum mismatch |
| E0026 | Unsupported type feature |
| E0027 | Non-exhaustive match |
| E0028 | Unreachable pattern |
| E0029 | Not a function |
| E0030 | Wrong number of arguments |
| E0031 | Argument type mismatch |