fun interface SomeComposable {
@Composable fun Content()
}
val content = SomeComposable { Text("hi") } // <- @Composable invocations can only happen from the context of a @Composable function
val content = SomeComposable @Composable { Text("hi") } // <- type mismatch: inferred @Composable () -> Unit but () -> Unit is expected
lhwdev
08/10/2021, 2:23 PM
It seems it should work, maybe I'm doing wrong or outdated version(I'm using