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

Support associated tuple and struct for enum variant #57

Open
0x009922 opened this issue Apr 20, 2022 · 0 comments
Open

Support associated tuple and struct for enum variant #57

0x009922 opened this issue Apr 20, 2022 · 0 comments
Assignees
Labels
compiler Something related to the compiler or its runtime enhancement New feature or request

Comments

@0x009922
Copy link
Contributor

enum Alphabet {
  A,                    // OK
  B(String),            // OK
  C(u64, u64, u64),     // Unsupported
  D { x: u32, y: u32 }, // Unsupported
}

It would be nice if compiler supports all of this.

@0x009922 0x009922 added enhancement New feature or request compiler Something related to the compiler or its runtime labels Apr 20, 2022
@0x009922 0x009922 self-assigned this Apr 20, 2022
@0x009922 0x009922 changed the title Support associated tuples and structs for enum variant Support associated tuple and struct for enum variant Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Something related to the compiler or its runtime enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant