diff --git a/plugins/uast-kotlin/tests/KotlinUastApiTest.kt b/plugins/uast-kotlin/tests/KotlinUastApiTest.kt index d466db80105..d31dcc69ab7 100644 --- a/plugins/uast-kotlin/tests/KotlinUastApiTest.kt +++ b/plugins/uast-kotlin/tests/KotlinUastApiTest.kt @@ -315,8 +315,8 @@ class KotlinUastApiTest : AbstractKotlinUastTest() { @Test fun testSuperTypes() { doTest("SuperCalls") { _, file -> - file.checkUastSuperTypes("B", listOf("A")) - file.checkUastSuperTypes("O", listOf("A")) + file.checkUastSuperTypes("class B", listOf("A")) + file.checkUastSuperTypes("object O", listOf("A")) file.checkUastSuperTypes("InnerClass", listOf("A")) file.checkUastSuperTypes("object : A(\"textForAnon\")", listOf("A")) } @@ -725,4 +725,4 @@ class KotlinUastApiTest : AbstractKotlinUastTest() { fun Iterable.assertedFind(value: R, transform: (T) -> R): T = find { transform(it) == value } ?: throw AssertionError("'$value' not found, only ${this.joinToString { transform(it).toString() }}") -fun runAll(vararg asserts: () -> Unit) = RunAll(*asserts.map { ThrowableRunnable(it) }.toTypedArray()).run() \ No newline at end of file +fun runAll(vararg asserts: () -> Unit) = RunAll(*asserts.map { ThrowableRunnable(it) }.toTypedArray()).run()