mirror of
https://github.com/anoma/juvix.git
synced 2025-01-07 08:08:44 +03:00
2baad15a41
* Enables new function syntax in local let-declarations * Closes #2251
12 lines
232 B
Plaintext
12 lines
232 B
Plaintext
-- constructor printing
|
||
module test055;
|
||
|
||
import Stdlib.Prelude open;
|
||
|
||
type Pair :=
|
||
| pair : Nat -> Nat -> Pair;
|
||
|
||
main : List (Pair × Nat) × List Pair :=
|
||
(pair 1 2, 3) :: (pair 2 3, 4) :: nil
|
||
, pair 1 2 :: pair 2 3 :: nil;
|