javac ast indices: when java file contains >1 top declaration classes only one was...
[idea/community.git] / jps / jps-builders / testSrc / org / jetbrains / references / ReferenceIndexTest.kt
index c11f6b0551d27e9124d26f32d722814e66107e32..f571f8752b81024098f8d208ced15bd49ff6d60d 100644 (file)
@@ -89,5 +89,13 @@ class ReferenceIndexTest : ReferenceIndexTestBase() {
     buildAllModules()
     assertIndexEquals("fileDeletedIndex.txt")
   }
+
+  fun testCompilationUnitContains2Decls() {
+    assertIndexOnRebuild("Foo.java")
+  }
+
+  fun testNestedClasses() {
+    assertIndexOnRebuild("Foo.java")
+  }
 }