RosettaCodeData/Task/Enforced-immutability/E/enforced-immutability-2.e
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07: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