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

Preserve integer literal formatting in type hint #10818

Merged
merged 1 commit into from
Jul 14, 2022

Commits on Jul 14, 2022

  1. Preserve integer literal formatting in type hint

    Before:
    
        1 | let _ = Int64.add 0xAA_BBl 2L;;
                              ^^^^^^^^
        Error: This expression has type int32 but an expression was expected of type
                 int64
          Hint: Did you mean `43707L'?
    
    After:
    
        1 | let _ = Int64.add 0xAA_BBl 2L;;
                              ^^^^^^^^
        Error: This expression has type int32 but an expression was expected of type
                 int64
          Hint: Did you mean `0xAA_BBL'?
    curiousleo committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    ef84311 View commit details
    Browse the repository at this point in the history