The docs say there are none, in contrast to Java. http://kotlinlang.org/docs/reference/basic-types.html
And yet I can multiply an int and a double without any problem. How is that?
val i = 1
val d = 1.1
val d2 = i * d
I ask because the topic has come up in another discussion forum, about Apple’s Swift language. They don’t have implicit widening conversions like Java (yet), but that 3rd line isn’t possible either. It becomes something like:
let d2 = Double(i) * d // Swift code
Which gets ugly when you have a longer expression. Do you have implicit conversion in some cases? Or have you defined a bunch of overloads for functions like
*, or … ?