Inline callable references
#KT-6900 Fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user