Files
compose-multiplatform/web/compose-compiler-integration/testcases/failing/InstanceGetValueOperatorComposable.kt
Oleksandr Karpovich 84eb629cec web: fix and update compiler plugin test cases (#1452)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-11-24 11:27:43 +01:00

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()
}
}