Files
kotlin-fork/compiler/testData/psi/examples/With.jet
T
2011-10-20 16:21:18 +02:00

15 lines
230 B
Plaintext

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