Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Feb 17, 2025
1 parent 52f08d4 commit 462454b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/positive/Format.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,27 @@ module MultiIf;
| else := 2;
end;

module TypeModule;
-- type Pair := mkPair

type Rec :=
mk@{
a : Nat;
}
with
fromNat : Nat -> Rec
| a :=
mk@{
a;
};

toNat : Rec -> Nat
| (mk a) := a;
end;

recId : Nat -> Nat := Rec.fromNat >> Rec.toNat;
end;

{-hi

-}
Expand Down

0 comments on commit 462454b

Please sign in to comment.