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

octal escape sequence literal type #39038

Closed
xiaoxiangmoe opened this issue Jun 12, 2020 · 0 comments · Fixed by #51837
Closed

octal escape sequence literal type #39038

xiaoxiangmoe opened this issue Jun 12, 2020 · 0 comments · Fixed by #51837
Labels
Bug A bug in TypeScript
Milestone

Comments

@xiaoxiangmoe
Copy link
Contributor

xiaoxiangmoe commented Jun 12, 2020

TypeScript Version: 3.9.4

Search Terms:
literal type, type inference
Code

const c :'Copyright ©'= "Copyright \251"

Expected behavior:

No error or warning for octal escape sequence

Actual behavior:

Type '"Copyright 251"' is not assignable to type '"Copyright ©"'.

Playground Link:
Playground Link
Related:

https://eslint.org/docs/rules/no-octal-escape

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
2 participants