JVM_IR KT-50171 add missing parent to temporary vals for proxy fun
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
// FULL_JDK
|
||||
// SKIP_JDK6
|
||||
|
||||
import java.util.function.DoubleConsumer
|
||||
|
||||
var value: Double = 3.14
|
||||
|
||||
fun f() = {
|
||||
g(::value::set)
|
||||
}
|
||||
|
||||
fun g(consumer: DoubleConsumer) {
|
||||
consumer.accept(42.0)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
f()()
|
||||
return if (value == 42.0) "OK" else "Fail"
|
||||
}
|
||||
Reference in New Issue
Block a user