RosettaCodeData/Task/Enforced-immutability/E/enforced-immutability-2.e

6 lines
142 B
Text
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
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