298a075381
Removed declaration for functions: TODO, run, with, apply, let.
17 lines
249 B
Kotlin
Vendored
17 lines
249 B
Kotlin
Vendored
// !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>() }
|
|
}
|
|
}
|