Extract Function: Support multiple output values
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun main(args: Array<String>) {
|
||||
with(A()) {
|
||||
println(<selection>prop</selection>)
|
||||
@@ -7,6 +8,4 @@ fun main(args: Array<String>) {
|
||||
|
||||
class A {
|
||||
val prop = 1
|
||||
}
|
||||
|
||||
public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
|
||||
}
|
||||
Reference in New Issue
Block a user