soma.cell

E0080: local_shadows_slot

E0080 local_shadows_slot — a let named like a memory slot.

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

The rule

A let named like a memory slot hides the slot for the rest of the block: reads, indexes and writes of that name then mean the local. soma check warns about this under the code W0014 (habit_warning). Rename the local (for example stock_count).

When you see it

soma check reports this rule (kind local_shadows_slot) as the warning W0014 habit_warning, never as E0080: the checker files every "habit" issue under W0014.