compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Can't Build Compose project when interface contains composable function

Open BreimerR opened this issue 3 years ago • 1 comments

When I add fun add to my interface then the project does not build at all

interface SomeCoreScope {
    val composables: MutableList<@Composable () -> Unit>
    fun add(composable: @Composable () -> Unit) {
        composables.add(
            composable
        )
    }
}

If i utilize this in else where i.e

interface SomeInterface: SomeCoreScope

Project fails to build with org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering thrown as the error

Project sample https://github.com/BreimerR/ComposeInterfaceException.git

BreimerR avatar Sep 04 '22 21:09 BreimerR

could you please try with compose 1.2.0-alpha01-dev774?

eymar avatar Sep 08 '22 10:09 eymar