RosettaCodeData/Task/Enforced-immutability/E/enforced-immutability-2.e
2023-07-01 13:44:08 -04:00

5 lines
142 B
Text

var y := 1
def things :DeepFrozen := [&x, 2, 3] # This is OK
def funnyThings :DeepFrozen := [&y, 2, 3] # Error: y's slot is not immutable