Files
kotlin-fork/compiler/testData/psi/examples/With.kt
T
2015-06-12 09:55:00 +03:00

15 lines
226 B
Kotlin
Vendored

inline fun with<T>(receiver : T, body : T.() -> Unit) = receiver.body()
fun example() {
with(java.lang.System.out) {
println("foo");
print("bar");
}
System.out.{
println("foo");
print("bar");
}()
}