sophia/test/contracts/stateful_pattern_guard.aes
2021-10-19 11:06:35 +03:00

13 lines
167 B
Plaintext

include "List.aes"
contract C =
type state = int
entrypoint init() = f(4)
function
f(x) | x > 0 = 1
f(x) | g(x) = 2
stateful function g(x) = x < 0