We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typecheck fails with some trivial examples when using (bind)
(bind)
(module A G (defcap G() true) (defun get-data:integer () (bind {'a:3} {'a:=val} val)) )
pact> (typecheck 'A) "Typecheck A: Unable to resolve all types" <interactive>:3:34:OutputFailure: Unable to resolve type (TySchema {_tySchema = TyObject, _tySchemaType = TyVar {_tyVar = SchemaVar {_tvName = "bind3_row"}}, _tySchemaPartial = FullSchema}) <interactive>:3:41:OutputFailure: Unable to resolve type (TySchema {_tySchema = TyBinding, _tySchemaType = TyVar {_tyVar = SchemaVar {_tvName = "bind3_row"}}, _tySchemaPartial = FullSchema})
One other real-life example (extract data from the transaction)
(module A G (defcap G() true) (defun get-data:string () (bind (read-msg) {'a:=val} val)) )
Does not work either
I expect typecheck to work in those cases, which are 100% correct Pact examples.
The text was updated successfully, but these errors were encountered:
Thanks @CryptoPascal31 - we're looking into it.
Sorry, something went wrong.
I have a similar problem with the where and at functions. You can look at this gist for an example.
where
at
No branches or pull requests
Issue description
Typecheck fails with some trivial examples when using
(bind)
Steps to reproduce
One other real-life example (extract data from the transaction)
Does not work either
Expected Behavior
I expect typecheck to work in those cases, which are 100% correct Pact examples.
The text was updated successfully, but these errors were encountered: