// @Module:Main // https://github.com/JetBrains/compose-jb/issues/827 import kotlin.reflect.KProperty import androidx.compose.runtime.Composable interface Router { companion object { @Composable operator fun getValue(ref: Any?, property: KProperty<*>): Router { return object : Router {} } } } fun main() { callComposable { val router by Router } } fun callComposable(content: @Composable () -> Unit) { // does nothing }