18 lines
266 B
Kotlin
Vendored
18 lines
266 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !CHECK_TYPE
|
|
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
|
|
|
|
|
|
class A
|
|
|
|
fun A.foo() = this
|
|
|
|
fun test(a: A) {
|
|
fun A.foo() = 3
|
|
|
|
a.foo() checkType { _<Int>() }
|
|
with(a) {
|
|
foo() checkType { _<Int>() }
|
|
}
|
|
}
|