d4c7d4fc7c
Use stubReceiver as a receiver for fake calls See issues KT-43358 KT-43359 KT-43378
21 lines
353 B
Kotlin
Vendored
21 lines
353 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
|
class A {
|
|
fun Int.extInt() = 42
|
|
fun A.extA(x: String) = x
|
|
|
|
fun main() {
|
|
Int::extInt
|
|
A::extA
|
|
|
|
eat(Int::extInt)
|
|
eat(A::extA)
|
|
}
|
|
}
|
|
|
|
fun eat(value: Any) {}
|
|
|
|
fun main() {
|
|
<!UNRESOLVED_REFERENCE!>A::extInt<!>
|
|
<!UNRESOLVED_REFERENCE!>A::extA<!>
|
|
}
|