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

Incorrect float literal type inference #1592

Closed
rizakrko opened this issue Jul 25, 2019 · 0 comments · Fixed by #1604
Closed

Incorrect float literal type inference #1592

rizakrko opened this issue Jul 25, 2019 · 0 comments · Fixed by #1604

Comments

@rizakrko
Copy link
Contributor

In the following snippet:

fn main(){
    let x = 42f64;
}

x is infered to i32. It looks like lexer parsed 42f64 as int literal.
Related: #5

bors bot added a commit that referenced this issue Jul 29, 2019
1604: Fix failing type interference for floating point literal r=matklad a=theotherphil

Fixes #1592

Co-authored-by: Phil Ellison <[email protected]>
@bors bors bot closed this as completed in #1604 Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant