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
Consider the following:
void test(something) { switch (something) { case Class.class: something.canonicalName break case File: something.canonicalPath break default: something.toString() } }
"canonicalName" and "canonicalPath" are shown as unknown (underlined). Their type could be inferred from each CaseStatement with ClassExpression test.
CaseStatement
ClassExpression
The text was updated successfully, but these errors were encountered:
See also https://issues.apache.org/jira/browse/GROOVY-8411
Sorry, something went wrong.
Fix for #1056: for class check in switch, handle similar to instanceof
ca76113
eric-milles
No branches or pull requests
Consider the following:
"canonicalName" and "canonicalPath" are shown as unknown (underlined). Their type could be inferred from each
CaseStatement
withClassExpression
test.The text was updated successfully, but these errors were encountered: