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
Expression expected error on logical operator after checking if instanceof GenericClass<T> #13856
Comments
Not sure when it's fixed, but works in main branch. |
@fisker, great! Do you know when it will be released? |
Very soon, #13792 |
Ok, thank you for the info. I am closing it. |
Would like to add a test for it? |
Yes, I can give it a try. Is |
Maybe |
Expressions like |
Reopen to track test. |
Prettier 2.7.1
Playground link
Input:
Output:
Expected behavior:
It works if I wrap Foo<'some-type'> with parentheses and then prettier formats it like expected behavior (also removesedit: problem occured again on reformat (obviously)( )
) but I think it should work without wrapping.It works if I split that logical OR into separate statements (I know this is not logically the same as above, just for an example)
The text was updated successfully, but these errors were encountered: