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

Reporting single-quoted multi-line strings #1133

Closed
andrevidela opened this issue Feb 26, 2021 · 0 comments · Fixed by #1155
Closed

Reporting single-quoted multi-line strings #1133

andrevidela opened this issue Feb 26, 2021 · 0 comments · Fixed by #1155

Comments

@andrevidela
Copy link
Collaborator

The following program return the correct error but at the wrong line:

hello : String
hello = "
    hello
    "

main : IO ()

The error is reported as

Error: Multi-line string is expected to begin with """.

 hello : String
 hello = "
   hello
 "
 main : IO ()
 ^

but should be reported as

Error: Multi-line string is expected to begin with """.

 hello : String
 hello = "
         ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant