Browse Source
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>pull/1231/head
Oleksandr Karpovich
3 years ago
committed by
GitHub
3 changed files with 26 additions and 0 deletions
@ -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 |
||||||
|
) { |
||||||
|
} |
Loading…
Reference in new issue