https://kotlinlang.org logo
c

cdurham

10/09/2017, 6:22 PM
in java you can pass an
Integer
to a method that takes an
int
, i guessed that the same unboxing would happen when you call a java method that takes an
int
when passing a kotlin
Int?
but I havent checked
and you cant 🙂