Skip to content

Commit

Permalink
Update the version of Analysis API and enable test
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed Oct 19, 2023
1 parent d30770d commit b3e3bb2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ kotlinx-bcv = "0.12.1"

## Analysis
kotlin-compiler = "1.9.10"
kotlin-compiler-k2 = "1.9.30-dev-3330"
kotlin-compiler-k2 = "2.0.0-dev-5387"

# MUST match the version of the intellij platform used in the kotlin compiler,
# otherwise this will lead to different versions of psi API and implementations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,13 @@ internal class JavadocIndexTest : AbstractJavadocTemplateMapTest() {
}
}

@Tag("onlyDescriptors") // K2: does not have getters: getName, getOrdinal
@Test
fun `handles correct number of elements`() {
//We are checking whether we will have an additional function for enum classes
fun hasAdditionalFunction() =
AnnotationTarget.ANNOTATION_CLASS::class.java.methods.any { it.name == "describeConstable" }

testIndexPages(commonTestQuery) { indexPages ->
// K2: does not have getters: getName, getOrdinal
assertEquals("A-index: a, A\n" +
"B-index: b\n" +
"C-index: c, ClassA, ClassB, ClassC, ClassC.InnerClass, ClassCEnum, compareTo\n" +
Expand Down

0 comments on commit b3e3bb2

Please sign in to comment.