From 9b07435773831874d4d80066a2227596198af988 Mon Sep 17 00:00:00 2001 From: Vadim Mishenev Date: Thu, 26 Oct 2023 14:39:00 +0300 Subject: [K2] Support kotlin-as-java and javadoc plugins and update version of Analysis API (#3227) * Implement InheritanceBuilder and for symbols * Enable tests for as-java and javadoc plugins and fix some * Update the version of Analysis API and enable test * Use assert from kotlin.test * Rename `descriptorInheritanceBuilder` * Fix after rebasing * Mute test `two classes from different packages` --- plugins/base/src/test/kotlin/model/ClassesTest.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'plugins/base/src') diff --git a/plugins/base/src/test/kotlin/model/ClassesTest.kt b/plugins/base/src/test/kotlin/model/ClassesTest.kt index 763809e8..c18dfafb 100644 --- a/plugins/base/src/test/kotlin/model/ClassesTest.kt +++ b/plugins/base/src/test/kotlin/model/ClassesTest.kt @@ -126,6 +126,21 @@ class ClassesTest : AbstractModelTest("/src/main/kotlin/classes/Test.kt", "class type.name equals "Unit" } } + + with((this.companion).cast()) { + name equals "Companion" + children counts 5 + + with((this / "x").cast()) { + name equals "x" + } + + with((this / "foo").cast()) { + name equals "foo" + parameters counts 0 + type.name equals "Unit" + } + } } } } -- cgit