11 lines
241 B
Plaintext
Vendored
11 lines
241 B
Plaintext
Vendored
fun foo(s: String) {}
|
|
|
|
data class Example(private val str: String) {
|
|
fun doWithExample(block : (Example) -> Unit) = block(Example("hello"))
|
|
|
|
fun runExample() {
|
|
doWithExample { (str1) ->
|
|
foo(str1)
|
|
}
|
|
}
|
|
} |