shiraji
01/21/2017, 12:03 AMthis or it?
a.setFoo(this)
a.setBar(it)
a.setBaz(3)
It's going to compile error unless the intention add labels to this or it.
with(a) {
setFoo(this@AAA)
setBar(it)
setBaz(3)
}
a.let {
it.setFoo(this)
it.setBar(it@forEach)
it.setBaz(3)
}
In case the issue is not talking about let, then ignore the case for it