-- Issue #2
open import Agda.Builtin.Nat using (suc) renaming (Nat to )

data Foo : Set where
  foo :   Foo

f :   Foo
f = foo

g :   
g = suc

h :   
h = g

open import Agda.Builtin.Nat

toNat : Foo  Nat
toNat (foo n) = n

test : Nat
test = toNat (f 42)
     + g 41
     + h 41
{-# COMPILE AGDA2LAMBOX test #-}
Debug λ☐ Rocq
  ↪  
WASM C OCaml CakeML Rust Elm
  ↪  
  ↪