mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-24 06:52:44 +03:00
3038eacf54
This completes the implementation of record updates. Fixes #399
9 lines
185 B
Plaintext
9 lines
185 B
Plaintext
type T = { x : [8], y : Bool }
|
|
|
|
f1 = { x = 2, y = True } : T
|
|
f2 = { f1 | x = 3 }
|
|
f3 = { f2 | x = 4, y = False }
|
|
f4 = { f3 | x -> x + 1 }
|
|
f5 = [f1,f2,f3,f4]
|
|
f6 = { f5 | x = [7,8,9,10] }
|