Properly process primitive receiver on inlining bound callable references
#KT-18728 Fixed
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
inline fun <T, R> T.map(transform: (T) -> R): R {
|
||||
return transform(this)
|
||||
}
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
val result = 1.map(3L::plus)
|
||||
return if (result == 4L) "OK" else "fail $result"
|
||||
}
|
||||
Reference in New Issue
Block a user