a1e0e8b0e7
Test case (from testPrimitiveReceiver): fun Short.foo() = 3 fun Int.foo() = 4 1::foo
16 lines
239 B
Kotlin
Vendored
16 lines
239 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
|
|
|
open class A
|
|
class B: A()
|
|
|
|
fun A.foo() {}
|
|
fun B.foo() {} // more specific
|
|
|
|
fun bar(a: Any) {}
|
|
fun bar(a: Int) {} // more specific
|
|
|
|
fun test() {
|
|
B::foo
|
|
::bar
|
|
} |