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
add-reduct
new-state
Describe the bug add-reduct doesn't work with (new-state (smth 100)) returning a type error
(new-state (smth 100))
To Reproduce
!(add-reduct &self (= (asset s1) (new-state (smth 100))))
Expected behavior The same as
!(let $x (new-state (smth 100)) (add-atom &self (= (asset s1) $x)))
That is, new-state should be executed before the equality is added to &self
&self
Actual behavior [(Error (State (smth 100)) BadType)]
[(Error (State (smth 100)) BadType)]
Additional context Interestingly that the following works (as well as let-expression above)
let
!(get-type (add-reduct &self (= (asset s1) (new-state (smth 100))))) ; [(->)] !(add-reduct &self (= (asset s1) (new-state 100))) !(asset s1) ; (State 100) !(add-reduct &self (= (asset s1) (new-state A))) !(asset s1) ; (State A)
The text was updated successfully, but these errors were encountered:
vsbogd
No branches or pull requests
Describe the bug
add-reduct
doesn't work with(new-state (smth 100))
returning a type errorTo Reproduce
Expected behavior
The same as
That is,
new-state
should be executed before the equality is added to&self
Actual behavior
[(Error (State (smth 100)) BadType)]
Additional context
Interestingly that the following works (as well as
let
-expression above)The text was updated successfully, but these errors were encountered: