mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
23 lines
339 B
Kotlin
Vendored
23 lines
339 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
// FILE: A.java
|
|
|
|
public interface A {
|
|
public String a = ""
|
|
public static void foo() {}
|
|
public static void baz(String s) {}
|
|
}
|
|
|
|
// FILE: K.kt
|
|
|
|
open class K : A {
|
|
val a = ""
|
|
fun foo() {}
|
|
fun foo(i: Int) {}
|
|
fun baz(i: Int) {}
|
|
|
|
companion object {
|
|
fun foo() {}
|
|
}
|
|
}
|