https://kotlinlang.org logo
o

orangy

10/05/2016, 2:17 PM
Looks like it does eliminate boxing:
Copy code
fun a(x:Float) {}
inline fun a(y:Number) = a(y.toFloat())
fun use() {
    a(1)
}
bytecode for
use
it straightforward:
Copy code
ICONST_1
    ISTORE 0
    ILOAD 0
    I2F
    INVOKESTATIC org/jetbrains/ktor/application/ApplicationKt.a (F)V