I have the following class with a primary construc...
# getting-started
e
I have the following class with a primary constructor
data class Vec2i(override var x: Int, override var y: Int) : Vec2t<Int>()
and then a secondary constructor, referring to the first one
constructor(x: Number, y: Number) : this(x.i, y.i)
No problems in kotlin, but in java it complains constructor is ambiguous... why this behavious difference?