This message was deleted.
# getting-started
s
This message was deleted.
y
If
B
is generated by a compiler plugin, then you don't need to worry about parameter naming, overload resolution, or any of that. Just do it in IR
☝️ 1
e
your naming makes things difficult but in source code you can write
Copy code
fun <T> Int.with() {
    return with(IntExt) with2@{ this@with.with() }
}
(
with2@
is needed to prevent
this@with
from using it)
➕ 1
name collisions there don't matter. but also you wouldn't be writing that in IR
and it's not about function names, it's a lambda label
e.g.
Copy code
listOf(1, 2, 3).map { return@map it }
because implicitly the unlabeled lambda gets its label from the function that it is given to
Copy code
listOf(1, 2, 3).map map@{ return@map it }
but you can explicitly set the name
Copy code
listOf(1, 2, 3).map foobar@{ return@foobar it }
and collisions are fine, otherwise
map { map { ... } }
would be a problem
anyhow it's moot, you just want to see what the IR looks like so you can reproduce it