We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: 2.4.0
Code
type Foo = 'lol' const barr: Foo = `lol` // Type 'string' is not assignable to type '"lol"'.
https://www.typescriptlang.org/play/#src=type%20Foo%20%3D%20'lol'%0A%0Aconst%20barr%3A%20Foo%20%3D%20%60lol%60
Expected behavior:
type Foo = 'lol' const barr: Foo = `lol` // No error
Actual behavior:
The text was updated successfully, but these errors were encountered:
Duplicate of #16592.
Sorry, something went wrong.
Thanks for finding that @ikatyang!
No branches or pull requests
TypeScript Version: 2.4.0
Code
https://www.typescriptlang.org/play/#src=type%20Foo%20%3D%20'lol'%0A%0Aconst%20barr%3A%20Foo%20%3D%20%60lol%60
Expected behavior:
Actual behavior:
The text was updated successfully, but these errors were encountered: