SSR: improve multi-matching references qualified with this or super (IDEA-144697)
[idea/community.git] / platform / structuralsearch / testSource / com / intellij / structuralsearch / StructuralSearchTest.java
index 32e757e98e1f9293e4b4aa4fbdc9a1281d4b3020..e2440cc0ade68666cf8d626561b6c245e37f9d91 100644 (file)
@@ -2033,15 +2033,15 @@ public class StructuralSearchTest extends StructuralSearchTestCase {
                     "    t = t;" +
                     "    s = this.s;" +
                     "  }" +
-                    //"}" +
-                    //"class B {" +
-                    //"  B(String t) {" +
-                    //"    super.s = s;" + // would be nice if found also
-                    //"  }" +
+                    "}" +
+                    "class B extends A {" +
+                    "  B(String t) {" +
+                    "    super.s = s;" +
+                    "  }" +
                     "}";
 
     String pattern = "'_var='_var";
-    assertEquals(3, findMatchesCount(source, pattern));
+    assertEquals(4, findMatchesCount(source, pattern));
   }
 
   public void testFindLambdas() {