JVM_IR: handle property references in SAM conversions

This commit is contained in:
Georgy Bronnikov
2019-10-03 13:52:46 +03:00
parent 74c9120d9d
commit cd78e6ec50
6 changed files with 47 additions and 1 deletions
@@ -0,0 +1,14 @@
// FILE: Base.java
interface Interface {
String call(String t);
}
// FILE: 1.kt
val String.property: String
get() = this
fun box(): String {
return Interface(String::property).call("OK")
}