Skip to content

Fix handling of parenthesized literals in InlineTrivialConstant - #6222

Open
Youssef-Khogaly wants to merge 2 commits into
google:masterfrom
Youssef-Khogaly:fix/#6217/InlineTrivialConstantParenthesesConstant
Open

Youssef-Khogaly wants to merge 2 commits into
google:masterfrom
Youssef-Khogaly:fix/#6217/InlineTrivialConstantParenthesesConstant

Conversation

@Youssef-Khogaly

Copy link
Copy Markdown

Fixes #6217

Changes:
Strip parentheses from the initializer expression tree before checking whether it is a string literal.

Testing:
Add tests for valid and invalid trivial literals with redundant parentheses

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

InlineTrivialConstant misses an empty-string constant with a parenthesized initializer

1 participant