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

feat: add type aliases in local scope #265

Open
3 tasks
Wodann opened this issue Sep 6, 2020 · 0 comments
Open
3 tasks

feat: add type aliases in local scope #265

Wodann opened this issue Sep 6, 2020 · 0 comments
Labels
exp: intermediate Achievable by experienced contributors, or with some guidance good first issue Good for newcomers pri: low An issue with no impact to quality, performance, or functionality type: feat New feature or request

Comments

@Wodann
Copy link
Collaborator

Wodann commented Sep 6, 2020

Issue #110 introduced type aliases to Mun - on a file-level. We want to extend this, such that - similar to Rust - Mun can support type aliases in a local scope:

type OtherTypeName = i32;
fn main() {
    type Typename = OtherTypeName; // Type alias in local scope
    let a: Typename = 10;
}

Good first issue process:

If this is your first PR, welcome 🎉 😄

@Wodann Wodann added good first issue Good for newcomers type: feat New feature or request pri: low An issue with no impact to quality, performance, or functionality exp: intermediate Achievable by experienced contributors, or with some guidance labels Sep 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp: intermediate Achievable by experienced contributors, or with some guidance good first issue Good for newcomers pri: low An issue with no impact to quality, performance, or functionality type: feat New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants