Код: Выделить всё
interface AInterface {
@Composable
fun Show(modifier: Modifier = Modifier)
}
class AInterfaceImpl : AInterface {
@Composable
override fun Show(modifier: Modifier) {
Text(
modifier = modifier,
text = "Message",
)
}
}
Код: Выделить всё
@Composable
fun ShowAInterfaceImpl(
modifier: Modifier,
aInterface: AInterface
) {
aInterface.Show(
modifier = modifier
)
}
Код: Выделить всё
kotlin.NotImplementedError: An operation is not implemented: Unknown file
at org.jetbrains.kotlin.ir.util.IrUtilsKt.getFile(IrUtils.kt:634)
at androidx.compose.compiler.plugins.kotlin.lower.InferenceFunctionDeclaration.toScheme(ComposableTargetAnnotationsTransformer.kt:680)
at androidx.compose.compiler.plugins.kotlin.lower.InferenceFunctionDeclaration.toDeclaredScheme(ComposableTargetAnnotationsTransformer.kt:671)
at androidx.compose.compiler.plugins.kotlin.lower.InferenceFunction.toDeclaredScheme$default(ComposableTargetAnnotationsTransformer.kt:614)
Если у кого-то есть какие-либо подсказки, дайте мне знать.
Спасибо. заранее.
Подробнее здесь: https://stackoverflow.com/questions/791 ... mplemented