diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/parsing/ClassesFqNamesTest.kt b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/parsing/ClassesFqNamesTest.kt index 7157b603ffa..a1e678fdb4a 100644 --- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/parsing/ClassesFqNamesTest.kt +++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/parsing/ClassesFqNamesTest.kt @@ -39,6 +39,56 @@ class ClassesFqNamesTest : KtUsefulTestCase() { ) } + @Test + fun testComplexPackage() { + doTest( + setOf("foo.bar.юникод.Foo"), + """ + // package simpleComment + package foo . bar . `юникод` + /* + package multiLineComment + */ + + class Foo""".trimIndent() + ) + } + + @Test + fun testDifferentTypeOfClasses() { + doTest( + setOf("test.C", "test.I", "test.O", "test.E", "test.A"), + """ + package test + + class C + interface I + object O + enum class E + annotation class A + typealias T""".trimIndent() + ) + } + + @Test + fun testLocalClass() { + doTest( + setOf("test.Foo"), + """ + package test + + fun f() { + class Fizz + } + + class Foo { + fun m() { + class Buzz + } + }""".trimIndent() + ) + } + @Test fun testMultipleClasses() { doTest(