Files
kotlin-fork/idea/testData/psi/examples/With.jet
T
2011-01-02 21:26:50 +03: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");
}()
}