Run the typechecker with juvix typecheck Token.juvix.
See the terminal not terminating.
[133 of 134] Compiling /Users/michaelheuer/Projects/Anoma/apps/anoma-apps/Token/Internal.juvix
[134 of 134] Compiling /Users/michaelheuer/Projects/Anoma/apps/anoma-apps/Token/Token.juvix
Description
The juvix typechecker freezes when
List Nat
function argument oMaybe
is added to the return typeSystemn
To Reproduce
Remove the square brackets
in https://github.com/anoma/anoma-apps/blob/9cfc2011d0706ddc81f69da38d4ecfd1250df1d8/Token/Token.juvix#L19.
Run the typechecker with
juvix typecheck Token.juvix
.See the terminal not terminating.
The bug can be reproduced by making the following change to the code https://github.com/anoma/anoma-apps/blob/9cfc2011d0706ddc81f69da38d4ecfd1250df1d8/Token/Token.juvix#L25
Expected behavior
The typechecker should throw a type error demanding
List Nat
instead ofNat
as a function argument.Screenshots