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

Using a struct field with name type does not compile #179

Open
lk16 opened this issue Oct 22, 2023 · 0 comments
Open

Using a struct field with name type does not compile #179

lk16 opened this issue Oct 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lk16
Copy link
Owner

lk16 commented Oct 22, 2023

Example below. The Rust compiler complains because type is a keyword in Rust.

struct Token {
    type as int,
}

fn main { 
    Token "type" { 5 } !
}
@lk16 lk16 added the bug Something isn't working label Oct 29, 2023
@lk16 lk16 mentioned this issue Oct 29, 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