From 861b1a199a771deedd2b7381e90e39e3dbf4bd03 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Mon, 10 Nov 2025 18:22:24 +0100 Subject: [PATCH] [kotlin] try to fix K2ComposableAnnotationToExtractedFunctionAdderTest which fails to resolve types from stdlib ^KTIJ-36373 fixed GitOrigin-RevId: 795d5dcd30074c0cb1362f01eda38326a7f0a4cb --- .../ComposableAnnotationToExtractedFunctionAdderTest.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/compose/intellij.compose.ide.plugin.shared/tests/com/intellij/compose/ide/plugin/shared/ComposableAnnotationToExtractedFunctionAdderTest.kt b/plugins/compose/intellij.compose.ide.plugin.shared/tests/com/intellij/compose/ide/plugin/shared/ComposableAnnotationToExtractedFunctionAdderTest.kt index 4bfaaa56940a..6ac53b0f6936 100644 --- a/plugins/compose/intellij.compose.ide.plugin.shared/tests/com/intellij/compose/ide/plugin/shared/ComposableAnnotationToExtractedFunctionAdderTest.kt +++ b/plugins/compose/intellij.compose.ide.plugin.shared/tests/com/intellij/compose/ide/plugin/shared/ComposableAnnotationToExtractedFunctionAdderTest.kt @@ -18,14 +18,19 @@ package com.intellij.compose.ide.plugin.shared import com.intellij.openapi.application.Application +import com.intellij.testFramework.LightProjectDescriptor import com.intellij.testFramework.fixtures.JavaCodeInsightTestFixture import com.intellij.util.application import org.intellij.lang.annotations.Language import org.jetbrains.kotlin.idea.test.KotlinLightCodeInsightFixtureTestCase +import org.jetbrains.kotlin.idea.test.KotlinWithJdkAndRuntimeLightProjectDescriptor import org.jetbrains.kotlin.name.FqName abstract class ComposableAnnotationToExtractedFunctionAdderTest : KotlinLightCodeInsightFixtureTestCase() { override fun runInDispatchThread(): Boolean = false + override fun getProjectDescriptor(): LightProjectDescriptor { + return KotlinWithJdkAndRuntimeLightProjectDescriptor.getInstance() + } /** Copied from AOSP. Regression test for https://issuetracker.google.com/issues/301481575 */ fun testConstantInComposableFunction() {