Skip to content

Commit

Permalink
change order of definition
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Nov 22, 2024
1 parent dd3277b commit c1f0151
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Juvix/Compiler/Core/Data/InfoTableBuilder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ declareBoolBuiltins =
declareInductiveBuiltins
"Bool"
(Just (BuiltinTypeInductive BuiltinBool))
[ (BuiltinTag TagTrue, "true", const mkTypeBool', Just BuiltinBoolTrue),
(BuiltinTag TagFalse, "false", const mkTypeBool', Just BuiltinBoolFalse)
[ (BuiltinTag TagFalse, "false", const mkTypeBool', Just BuiltinBoolFalse),
(BuiltinTag TagTrue, "true", const mkTypeBool', Just BuiltinBoolTrue)
]

declareNatBuiltins :: (Member InfoTableBuilder r) => Sem r ()
Expand Down
4 changes: 2 additions & 2 deletions tests/negative/Internal/LazyBuiltin.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module LazyBuiltin;

builtin bool
type Bool :=
| true : Bool
| false : Bool;
| false : Bool
| true : Bool;

builtin bool-if
ite : {A : Type} -> Bool -> A -> A -> A
Expand Down

0 comments on commit c1f0151

Please sign in to comment.