loom
10 строк · 377.0 Байт
1global immutable {
2operator "sbl" (sbl.op.VariableAssignment) (lvalue, rvalue)
3{
4if (lvalue.owner != nil &&
5lvalue.owner.contracts.find("immutable"))
6call sbl.throwContractError(lvalue.location,
7"It is unacceptable to change the
8state of an immutable type")
9}
10}
11
12