glenkpeterson
03/27/2019, 9:24 PMinterface MyInterface {
val myVal: Boolean
companion object {
@JvmStatic
fun foo(m: MyInterface): Boolean = m.myVal
}
}
Now dozens of Java classes that implement MyInterface are showing red-underlined errors in IntelliJ IDEA, saying that they need to implement the static interface method foo (they don't). They compile just fine. I found this bug which seems to match exactly: https://youtrack.jetbrains.com/issue/KT-27208 but I don't understand why it's only got one thumbs up. If I'm the only one with this problem, I must be doing something else wrong. Thoughts?