erg/tests/should_ok/none.er
Shunsuke Shibayama 111a9f5615 Fix #247
2022-11-27 20:24:11 +09:00

6 lines
168 B
Python

i = !None # this shold be warned because `None` is a singleton (cannot be changed)
i.update! _ -> 2 # this should be errored
n = !2
n.update! i -> i * 2
assert n == 4