diff --git a/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt b/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt index a17fcb4680..02d428f351 100644 --- a/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt +++ b/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt @@ -13,6 +13,8 @@ import org.junit.runners.Parameterized import java.io.File import java.util.jar.* +// testJs, testAndroidNative, testLinuxX64 succeed with KSP1 but fail with KSP2. + @RunWith(Parameterized::class) class KMPImplementedIT(useKSP2: Boolean) { @Rule diff --git a/integration-tests/src/test/resources/kmp/annotations/src/commonMain/kotlin/com/example/MyAnnotation.kt b/integration-tests/src/test/resources/kmp/annotations/src/commonMain/kotlin/com/example/MyAnnotation.kt index b938f1c1ae..f8cca69e1a 100644 --- a/integration-tests/src/test/resources/kmp/annotations/src/commonMain/kotlin/com/example/MyAnnotation.kt +++ b/integration-tests/src/test/resources/kmp/annotations/src/commonMain/kotlin/com/example/MyAnnotation.kt @@ -1,3 +1,3 @@ package com.example -annotation class MyAnnotation +annotation class MyAnnotation(val x: String = "") diff --git a/integration-tests/src/test/resources/kmp/test-processor/src/main/kotlin/ValidateProcessor.kt b/integration-tests/src/test/resources/kmp/test-processor/src/main/kotlin/ValidateProcessor.kt index f8c7056ca1..67a8e6e3fd 100644 --- a/integration-tests/src/test/resources/kmp/test-processor/src/main/kotlin/ValidateProcessor.kt +++ b/integration-tests/src/test/resources/kmp/test-processor/src/main/kotlin/ValidateProcessor.kt @@ -13,6 +13,9 @@ class ValidateProcessor(val codeGenerator: CodeGenerator, val logger: KSPLogger) val toValidate = resolver.getSymbolsWithAnnotation("com.example.MyAnnotation") toValidate.forEach { + it.annotations.forEach { + it.arguments + } if (!it.validate()) { logger.error("$it.validate(): not ok") }