diff --git a/web/compose-compiler-integration/main-template/lib/build.gradle.kts b/web/compose-compiler-integration/main-template/lib/build.gradle.kts index 784f3b836b..af3f7664a2 100644 --- a/web/compose-compiler-integration/main-template/lib/build.gradle.kts +++ b/web/compose-compiler-integration/main-template/lib/build.gradle.kts @@ -4,6 +4,7 @@ plugins { } repositories { + mavenLocal() mavenCentral() maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") } diff --git a/web/compose-compiler-integration/main-template/settings.gradle.kts b/web/compose-compiler-integration/main-template/settings.gradle.kts index 11be86e909..e2129e5abc 100644 --- a/web/compose-compiler-integration/main-template/settings.gradle.kts +++ b/web/compose-compiler-integration/main-template/settings.gradle.kts @@ -1,5 +1,6 @@ pluginManagement { repositories { + mavenLocal() gradlePluginPortal() maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") diff --git a/web/compose-compiler-integration/testcases/failing/ComposableWithDefaultValuesDefinedByOtherParams.kt b/web/compose-compiler-integration/testcases/failing/ComposableWithDefaultValuesDefinedByOtherParams.kt new file mode 100644 index 0000000000..4aa2d2f9c3 --- /dev/null +++ b/web/compose-compiler-integration/testcases/failing/ComposableWithDefaultValuesDefinedByOtherParams.kt @@ -0,0 +1,24 @@ +// @Module:Main +import androidx.compose.runtime.Composable +import androidx.compose.runtime.currentComposer +import androidx.compose.runtime.Composer + +fun main() { + callComposable { + ComposableWithDefaultParamsDefinedByOtherParams("a") + } +} + +fun callComposable(content: @Composable () -> Unit) { + val c = content +} + +// @Module:Lib +import androidx.compose.runtime.Composable + +@Composable +fun ComposableWithDefaultParamsDefinedByOtherParams( + a: String, + b: String = a +) { +}