TP0202
Error: cannot assign to let binding
Messages
Section titled “Messages”cannot assign to '<x>': it is a <let binding|parameter|loop variable|constant|function|method>, with helpdeclare it with 'var'for aletbindingcannot assign to an element of strcannot assign to an element of a tuplecannot use '<op>' on a slicecannot delete '<x>', with helpassign it a new value insteadcannot delete a fieldcannot delete an element of <T>(M26)cannot assign to '<p>': it is a read-only propertycannot assign to '<a>' through '<x>', with helpassign '<C>.<a>'(M28)cannot assign to '<f>': '<C>' is frozen(M39)
Example
Section titled “Example”From the golden case tests/cases/m11/tp0202_functions.tpn:
def outer(): def inner(): pass inner = outerThe compiler reports:
tp0202_functions.tpn:4:5: error TP0202: cannot assign to 'inner': it is a functionThe specification lists every code.
© 2026 Discover Edge, LLC · Taipan is released under the MIT License.