IDEA-231427 Extract method produces incompilable code when extracting expression that produces a pattern variable

GitOrigin-RevId: 3fbd29e6543e21af934c4de8899bd6ed5bda6965
This commit is contained in:
Tagir Valeev
2020-01-27 13:07:50 +07:00
committed by intellij-monorepo-bot
parent f22fa4063b
commit 186596b687
6 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
class X {
void test(Object obj) {
if (<selection>obj instanceof String s && s.length() > 5</selection>) {
System.out.println("found");
}
}
}