Inline callable references

#KT-6900 Fixed
This commit is contained in:
Michael Bogdanov
2015-04-10 12:20:40 +03:00
parent 991db29731
commit e200b97ca4
19 changed files with 235 additions and 23 deletions
@@ -0,0 +1,9 @@
package test
class A(val z: Int) {
fun calc() = z
}
inline fun call(p: A, s: A.() -> Int): Int {
return p.s()
}