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

ability to implicitly cast any int to any other int if the value is compile-time known and in range #422

Closed
andrewrk opened this Issue Aug 19, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@andrewrk
Copy link
Member

commented Aug 19, 2017

example:

comptime {
    const a: i64 = 200;
    const b: u8 = a; //allowed
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.