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
430 B
25 lines
430 B
3 years ago
|
// @Module:Main
|
||
|
|
||
|
// https://github.com/JetBrains/compose-jb/issues/1226
|
||
|
|
||
3 years ago
|
// TODO: move this to passing cases after kotlin 1.6.0
|
||
3 years ago
|
import kotlin.reflect.KProperty
|
||
|
import androidx.compose.runtime.Composable
|
||
|
|
||
|
@Composable
|
||
|
fun <T> MySelect(
|
||
|
options: List<T>,
|
||
|
onChange: (T?) -> Unit
|
||
|
) {
|
||
|
|
||
|
}
|
||
|
|
||
|
fun main() {
|
||
|
callComposable {
|
||
|
MySelect<String>(
|
||
|
options = emptyList(),
|
||
|
onChange = {}
|
||
|
)
|
||
|
}
|
||
|
}
|