1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-05 22:46:08 +03:00
juvix/tests/Internal/positive/LitInteger.juvix
Łukasz Czajka c55f04dc46
Convert Nat literals to Core integers (#1681)
Now it's possible to write `1 + 2` in the Juvix REPL and not get an
error.

Closes #1645.

Co-authored-by: Jonathan Cubides <jonathan.cubides@uib.no>
2023-01-03 18:52:20 +01:00

15 lines
183 B
Plaintext

module LitInteger;
open import Stdlib.Prelude public;
main : Nat;
main := 1 + 2;
nilNat : List Nat;
nilNat := nil;
cons : Nat -> List Nat -> List Nat;
cons a xs := a :: xs;
end;