5409b19abc
#KT-7988 Fixed
11 lines
186 B
Kotlin
Vendored
11 lines
186 B
Kotlin
Vendored
public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
|
|
|
|
class C {
|
|
fun foo(s: String) {
|
|
with(1) {
|
|
bar()
|
|
}
|
|
}
|
|
|
|
fun Int.bar() {}
|
|
} |