soma.cell

E1007: cell_constant

E1007 cell_constant — a let / const directly inside a cell.

A compile-time error of soma check, the checker of the Soma programming language (soma explain E1007).

The rule

A cell has no cell-level let: a value written directly inside a cell must be a constant, const MAX_BALANCE = 100000, and its value must be a literal (a number, a String without interpolation, or a Bool). A value that changes belongs in a memory slot. This compiler reports a cell-level let under E1009, not E1007; replace let with const.

When you see it

E1007 is assigned only to a parser message containing "a cell has no constants", and no message says that any more. A let directly inside a cell is still refused, but under E1009 with the message "a cell has no cell-level let — a constant is const LIMIT = 500 …".