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 @@
import test.*
fun box() : String {
return if (call(10, Int::calc) == 100) "OK" else "fail"
}
fun Int.calc(p: Int) : Int {
return p * this
}