7fcd42f40c
Some corner cases still remain: KotlinSignature, propagation, deserialized delegates to Java interfaces #KT-1239 Obsolete #KT-1924 In Progress #KT-2081 Fixed
19 lines
330 B
Kotlin
19 lines
330 B
Kotlin
// FILE: JavaInterface.java
|
|
|
|
interface JavaInterface {
|
|
void foo(int javaName);
|
|
}
|
|
|
|
// FILE: kotlin.kt
|
|
|
|
class SimpleSubclass : JavaInterface {
|
|
override fun foo(kotlinName: Int) {}
|
|
}
|
|
|
|
|
|
trait SubtraitWithFakeOverride : JavaInterface
|
|
|
|
class Subclass : SubtraitWithFakeOverride {
|
|
override fun foo(otherKotlinName: Int) {}
|
|
}
|