I'm trying to work with a library class in IDEA an...
# intellij
a
I'm trying to work with a library class in IDEA and I've bumped into a very weird problem with a MPP project. I try to use the class and IDEA doesn't discover any methods on it. If I choose
assign to local variable
it tries to cast it into itself (???):
Copy code
Property<Boolean> selectedProperty = (Property<Boolean>) check1.getSelectedProperty();
and signals a compile error:
inconvertible types, cannot cast Property<Boolean>  to Property<Boolean>
If I compile my code form the CLI it works fine, but within IDEA it is a compile error. What am I doing wrong? I'm trying to use a Kotlin MPP class in my Java code.
l
Seems like an import issue, a mismatch, or just a bug that you can report on kotl.in/issue
a
it is not an import nor a mismatch issue, since this works with kotlin
the project builds if i just type it in
this happens only in idea
l
You need to report it to have a chance to get it fixed then, I put a link above
a
thanks!