Extension function for Number type and autoboxing


#1

Is the autoboxing involved when the extension function normalize is called?

fun Number.normalize(){ /* some code */}

class Foo{

    fun bar(d: Double){
        val result = d.normalize()
        // some code
    }
}

Note, that the extension function is defined for Number type, not for Double.


#2

Yes.