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

Suffix on integer literals can enforce the type #123

Closed
philberty opened this issue Jan 5, 2021 · 0 comments · Fixed by #122 or #126
Closed

Suffix on integer literals can enforce the type #123

philberty opened this issue Jan 5, 2021 · 0 comments · Fixed by #122 or #126
Assignees

Comments

@philberty
Copy link
Member

For example:

let b1 = 1i8;
let b2 = 2i16;
let b3 = 3i32;
let b4 = 4i64;
let b5 = 5i128;

Without the type the name will resolve of i32 by default.

@philberty philberty added this to the Core Datastructures milestone Jan 5, 2021
@philberty philberty self-assigned this Jan 5, 2021
@philberty philberty linked a pull request Jan 6, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant