298a075381
Removed declaration for functions: TODO, run, with, apply, let.
14 lines
249 B
Kotlin
Vendored
14 lines
249 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
|
|
|
|
class A {
|
|
fun foo() = this
|
|
}
|
|
|
|
fun test(foo: A.() -> Int) {
|
|
with(A()) {
|
|
foo() checkType { _<A>() }
|
|
this.foo() checkType { _<A>() }
|
|
}
|
|
}
|