Files
kotlin-fork/compiler/testData/psi/examples/With.jet
T
2011-12-21 10:57:09 +02:00

15 lines
228 B
Plaintext

[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");
}()
}