Inline callable references
#KT-6900 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
class A(val z: Int) {
|
||||
fun calc() = z
|
||||
|
||||
fun test() = call(A(z), ::calc)
|
||||
}
|
||||
|
||||
inline fun call(p: A, s: A.() -> Int): Int {
|
||||
return p.s()
|
||||
}
|
||||
Reference in New Issue
Block a user