Files
kotlin-fork/analysis/low-level-api-fir/testData/inBlockModification/statement2.kts
T
Dmitrii Gridin 33e6a85a2d [LL FIR] rename testdata to testData to avoid copyright generation
We exclude testData pattern from copyright scope
2023-09-18 21:12:45 +00:00

27 lines
338 B
Kotlin
Vendored

class Builder {
var version: String = ""
fun execute() {
println(version)
}
}
fun build(action: Builder.() -> Unit) = Builder().apply(action)
build {
version = "123"
class A {
fun doo() {
}
}
execute()
}
val builder = <expr>build</expr> {
version = "321"
}
builder.execute()