You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
493 B
25 lines
493 B
3 years ago
|
// @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
|
||
|
) {
|
||
|
}
|