Adrian Blanco
03/22/2020, 3:53 PMinterface Foo { val view: @Composable() -> Unit }
with an implementation in a different module, using dev-06 and above fails at compile time with this error:
error: cannot access Foo
public final class FooImpl implements ...Foo {
bad class file: .../classes.jar(.../Foo.class)
undeclared type variable: N
Leland Richardson [G]
03/22/2020, 5:29 PMFooImpl
look like? interfaces with composables should work as long as both modules are being compiled with our compilerAdam Powell
03/22/2020, 6:54 PMAdrian Blanco
03/22/2020, 9:07 PMcompose true
or kotlinCompilerExtensionVersion
itself (because the implementing module needed to use kapt).
In dev06 adding both options seems to at least make the original error disappear, and instead introduces IR compiler errors probably just complaining about kapt as usual, so that might fix the original issue.