Browse Source
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>pull/1229/head
Oleksandr Karpovich
3 years ago
committed by
GitHub
2 changed files with 35 additions and 0 deletions
@ -0,0 +1,27 @@
|
||||
// @Module:Main |
||||
|
||||
// https://github.com/JetBrains/compose-jb/issues/1226 |
||||
|
||||
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 = {} |
||||
) |
||||
} |
||||
} |
||||
|
||||
fun callComposable(content: @Composable () -> Unit) { |
||||
// does nothing |
||||
} |
Loading…
Reference in new issue