3c3d120004
A non-abstract super-declaration is allowed to stand as 'an implementation' of a fake override only if its visibility is not less than visibilities of all other super-declarations #KT-2491 Fixed
14 lines
225 B
Kotlin
14 lines
225 B
Kotlin
// FILE: JavaInterface.java
|
|
|
|
interface JavaInterface {
|
|
void foo(int javaName);
|
|
}
|
|
|
|
// FILE: kotlin.kt
|
|
|
|
trait KotlinTrait {
|
|
public fun foo(someOtherName: Int) {}
|
|
}
|
|
|
|
class BothTraitsSubclass : JavaInterface, KotlinTrait
|