Skip to content
New issue

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

bug: Assign of consumable to variable should call (like an expression) #115

Open
phorward opened this issue Aug 5, 2023 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@phorward
Copy link
Member

phorward commented Aug 5, 2023

Given tokay -- hello1234

Tokay 0.6.4
>>> x = Int
>>> x
1234
>>> X : @{ x = Int x }
Line 1, column 1: Cannot assign to constant 'X', because it must be consumable. Use an identifier starting in lower-case, e.g. 'x'
>>> 

Inside of the parselet definition, the assignment of Int to x should call Int. It can be worked around by X : @{ x = {Int} x }.

@phorward phorward added the bug Something isn't working label Aug 5, 2023
@phorward phorward changed the title bug: Assign of consumable call not recognized in function bug: Assign of consumable to variable should call (like an expression) Aug 5, 2023
@phorward phorward self-assigned this Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant