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

Assign for enum #48

Open
myuon opened this issue Jun 4, 2023 · 2 comments
Open

Assign for enum #48

myuon opened this issue Jun 4, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@myuon
Copy link
Owner

myuon commented Jun 4, 2023

term.t_discard = t?;
@myuon myuon added the bug Something isn't working label Jun 4, 2023
@myuon
Copy link
Owner Author

myuon commented Jun 4, 2023

This should be compilation error: cannot assign to enum value.

@myuon
Copy link
Owner Author

myuon commented Jul 31, 2023

This should be compiled:

if t.t_hoge != nil {
    t.t_hoge!.foo = 10;
}

@myuon myuon added this to quartz Sep 16, 2023
@myuon myuon moved this to Todo in quartz Sep 16, 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
Status: Todo
Development

No branches or pull requests

1 participant