(pub type Counter
  ((value i32 0)))

(pub fn increment ((counter !&Counter)) -> void
  (inc [counter value]))

(pub fn read ((counter &Counter)) -> i32
  [counter value])

(pub fn example () -> i32
  (let ((counter (Own (Counter))))
    (increment counter)
    (read counter)))
