IDEA-303240 Resolve for parenthesized patterns

GitOrigin-RevId: 7e3cd33ea7abbe2acd8e7821a844df680e0c5a65
This commit is contained in:
Andrey.Cherkasov
2022-10-06 17:24:48 +04:00
committed by intellij-monorepo-bot
parent e3ef393494
commit 40a07679bb
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,11 @@ class X {
System.out.println(s.trim());
}
void ifParenthesizedPattern(Object obj) {
if (!(obj instanceof ((String s)))) return;
System.out.println(s.trim());
}
void ifElse(Object obj) {
if (!(obj instanceof String s)) return;
else {