I seem to be getting this false positive compiler ...
# android-studio
m
I seem to be getting this false positive compiler error for:
expect class Foo(): Bar
Copy code
Class 'Foo' is not abstract and does not implement abstract members:
It happens when the expect class is implementing some interface
m
This is multi-platform project right. This article you can check it you can check how to interface in kmp project https://medium.com/@meet26/cross-platform-text-to-speech-with-real-time-highlighting-kotlin-multiplatform-swift-9a02fa667f6f
m
Thanks but that’s only using
expect fun
not
expect class
Note - the app compiles and runs fine. It’s just the IDE causing issues.
m
Ohh
j
I also encountered this and thought that was a limitation of KMP expect/actual, didn't think to try a command-line build.
m
I just tap the Run button and it works anyway
I have a similar issue with:
Copy code
expect class PlatformTypeface // common

actual typealias PlatformTypeface = android.graphics.Typeface // android