mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
20 lines
356 B
Kotlin
20 lines
356 B
Kotlin
// @Module:Main
|
|
|
|
// https://github.com/JetBrains/compose-jb/issues/827
|
|
|
|
import kotlin.reflect.KProperty
|
|
import androidx.compose.runtime.Composable
|
|
|
|
class Router {
|
|
@Composable
|
|
operator fun getValue(ref: Any?, property: KProperty<*>): Router {
|
|
return Router()
|
|
}
|
|
}
|
|
|
|
fun main() {
|
|
callComposable {
|
|
val router by Router()
|
|
}
|
|
}
|