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.
24 lines
433 B
24 lines
433 B
3 years ago
|
// @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()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fun callComposable(content: @Composable () -> Unit) {
|
||
|
// does nothing
|
||
|
}
|