You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this fails on Hash at the last line because Hash is parsed as "(1 ** (Hash := (mu [MkHash: {1}])))" which the parser understands as a 1-argument type constructor.
The index points to the reference in context, in the case "String" (looks like the indices are 1 lower than they should but that shouldn't affect parsing). Since HashDate and Amount are placed one after the other, it looks like we're giving Hash 2 arguments instead of 1. While in truth Hash doesn't take any arguments since it points to a reference in context.
parse everything as a (n ** Def (x + n)) where x is the size of the references in context and do some arithmetic in order to check if an identifier needs to be applied to arguments. That means that (name Amount (mu (MkAmount Int))) parses as (3 ** (Amount := (mu [MkAmount: {0}]))
The text was updated successfully, but these errors were encountered:
this fails on
Hash
at the last line becauseHash
is parsed as"(1 ** (Hash := (mu [MkHash: {1}])))"
which the parser understands as a 1-argument type constructor.The index points to the reference in context, in the case "String" (looks like the indices are 1 lower than they should but that shouldn't affect parsing). Since
Hash
Date
andAmount
are placed one after the other, it looks like we're givingHash
2 arguments instead of 1. While in truthHash
doesn't take any arguments since it points to a reference in context.Possible solutions:
(n ** Def (x + n))
wherex
is the size of the references in context and do some arithmetic in order to check if an identifier needs to be applied to arguments. That means that(name Amount (mu (MkAmount Int)))
parses as(3 ** (Amount := (mu [MkAmount: {0}]))
The text was updated successfully, but these errors were encountered: