Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
3
Task/Enforced-immutability/E/enforced-immutability-1.e
Normal file
3
Task/Enforced-immutability/E/enforced-immutability-1.e
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
def x := 1
|
||||
|
||||
x := 2 # this is an error
|
||||
5
Task/Enforced-immutability/E/enforced-immutability-2.e
Normal file
5
Task/Enforced-immutability/E/enforced-immutability-2.e
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue