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
Highlight either the as keyword or the nullable type, maybe even just the question-mark.
as
Whole expression on the left of the cast is highlighted.
Any expression really, but it shows most when the casted thing is a chain of functional code
listOf("fieldName").map { // very long code String::class.java.getDeclaredField(it).get(null) }.first() as String?
Pretty much the same as #5316, but a different rule.
The text was updated successfully, but these errors were encountered:
Report CastToNullableType at the cast operator instead of the whole e…
7b73606
…xpression (#5350) Closes #5346
Successfully merging a pull request may close this issue.
Expected Behavior
Highlight either the
as
keyword or the nullable type, maybe even just the question-mark.Observed Behavior
Whole expression on the left of the cast is highlighted.
Steps to Reproduce
Any expression really, but it shows most when the casted thing is a chain of functional code
Context
Pretty much the same as #5316, but a different rule.
Your Environment
The text was updated successfully, but these errors were encountered: