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

Incorrect type flag TypeFlags.BooleanLiteral instead of TypeFlags.Boolean #45468

Closed
iliubinskii opened this issue Aug 16, 2021 · 3 comments
Closed

Comments

@iliubinskii
Copy link

Bug Report

πŸ”Ž Search Terms

TypeFlags Boolean BooleanLiteral

πŸ•— Version & Regression Information

v4.3.5

⏯ Playground Link

πŸ’» Code

πŸ™ Actual behavior

It looks like compiler sets BooleanLiteral flag instead of Boolean

πŸ™‚ Expected behavior

Should set correct flag

@MartinJohns
Copy link
Contributor

Is this #40203? Hard to tell, because you provided close to no information.

@iliubinskii
Copy link
Author

I found that typescript provides union type that consists of true and false literals instead of just Boolean type.
This is suitabe for me.
Probably this is expected behavior.

@MartinJohns
Copy link
Contributor

That is the expected behaviour, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants