miha-x64
01/22/2019, 4:00 PM@JvmStatic
really makes a method static inside an object declaration, if possible. So, I can imagine a corner case:
1. Module A contains an interface A {}
2. Module B implements it:
object B : A {
@JvmStatic fun doSomething()
}
3. Module A adds a method in next version: interface A { fun doSomething() }
Expected: B.doSomething()
and (B as A).doSomething()
is the same method.
But I think AbstractMethodError will occur instead.efemoney
01/23/2019, 7:42 PMA
then it should rightfully be a compile errormiha-x64
01/24/2019, 9:17 AM