open import Agda.Builtin.Nat using (Nat; zero; suc)
postulate TODO : ∀ {A : Set} → A
max : Nat → Nat
max = TODO
testMax : Nat
testMax with 0
... | zero = 42
... | suc _ = max 42
getTestMax : Nat
getTestMax = testMax
postulate Key : Set
idKey : Key → Key
idKey k = k
postulate getDefaultKey : Key
testGetKey : Key
testGetKey = getDefaultKey
postulate defaultKey : Key
testKey : Key
testKey = defaultKey
postulate hash : ∀ {A : Set} → A → Key
testHash : Key
testHash = hash testMax
open import Agda.Builtin.Nat
toNat : Key → Nat
toNat _ = 42
test : Nat
test = testMax
+ getTestMax
{-# COMPILE AGDA2LAMBOX test #-}
Debug λ☐ Rocq ↪
WASM C OCaml CakeML Rust Elm