Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
dc4e06c6afe5f8bb2d4b9c834b8eaf190cabe72a
/
.
/
compiler
/
testData
/
psi
/
examples
/
With.kt
blob: 0f1bbdf4b553224c42355b9e2dff26b8a2c4a33b [
file
]
inline
fun
<
T
>
with
(
receiver
:
T
,
body
:
T
.()
->
Unit
)
=
receiver
.
body
()
fun example
()
{
with
(
java
.
lang
.
System
.
out
)
{
println
(
"foo"
);
print
(
"bar"
);
}
System
.
out
.{
println
(
"foo"
);
print
(
"bar"
);
}()
}