backend: add test for lambda with receiver
This commit is contained in:
committed by
SvyatoslavScherbina
parent
ac4aca1c3a
commit
319a473565
@@ -0,0 +1,9 @@
|
||||
fun main(args: Array<String>) {
|
||||
apply("foo") {
|
||||
println(this)
|
||||
}
|
||||
}
|
||||
|
||||
fun apply(str: String, block: String.() -> Unit) {
|
||||
str.block()
|
||||
}
|
||||
Reference in New Issue
Block a user