Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/priority/staticVsImplicitReceiverMember.kt
T

20 lines
325 B
Kotlin
Vendored

// FIR_IDENTICAL
// !CHECK_TYPE
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
// FILE: A.java
public class A {
public static void foo() {}
}
// FILE: 1.kt
class C {
fun foo() = this
inner class B : A() {
fun test() {
foo() checkType { _<Unit>() }
}
}
}