Skip to content

Misaligned error rendering with UTF-16 symbols #254

Description

@gerau

Project version

0.5.0-rc.0

Project

compiler

What happened?

Error rendering is shifted when UTF-16 symbols are present in the code.
Almost the same issue as in #223 (comment), but in compiler itself.

Minimal reproduction steps

Compile this program:

fn main(){
    /*😀😀*/ let a: u8 = 65536;
}

and error would look like this:

  |
2 |     /*😀😀*/ let a: u8 = 65536;
  |                               ^^^^^ Cannot parse: number too large to fit in target type

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions