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

Compiler crashes if there's an error in a PETSCII escape code #99

Open
mrg-75 opened this issue Mar 8, 2020 · 1 comment
Open

Compiler crashes if there's an error in a PETSCII escape code #99

mrg-75 opened this issue Mar 8, 2020 · 1 comment
Labels
bug Something isn't working minor
Milestone

Comments

@mrg-75
Copy link

mrg-75 commented Mar 8, 2020

If you enter an unrecognised PETSCII escape sequence, the compiler throws an error.

Example:

print "{abc}"

std.conv.ConvException@C:\hostedtoolcache\windows\dc\dmd-2.090.1\x64\dmd2\windows\bin\..\..\src\phobos\std\conv.d(2312): Unexpected 'a' when converting from type string to type uint

@JJFlash-IT
Copy link

This also happens if you enter a valid PETSCII escape sequence, but not in upper case, like {clr} or {CLr} instead of {CLR}

@neilsf neilsf added the bug Something isn't working label Mar 9, 2020
@neilsf neilsf added this to the Version 3.0 milestone Mar 9, 2020
@neilsf neilsf added the minor label Mar 9, 2020
@neilsf neilsf modified the milestones: Version 3.0, Version 2.4 Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor
Projects
None yet
Development

No branches or pull requests

3 participants