open import Agda.Builtin.Nat using (Nat)

constNat : Nat  Nat  Nat
constNat x _ = x

the42 : Nat
the42 = constNat 42 0

open import Agda.Builtin.Nat

test : Nat
test = constNat 42 41
     + the42
{-# COMPILE AGDA2LAMBOX test #-}
Debug λ☐ Rocq
  ↪  
WASM C OCaml CakeML Rust Elm
  ↪  
  ↪