elect
11/08/2016, 10:21 AMabstract class Vec2t<T : Number>(open var x: T, open var y: T)
and data class Vec2(override var x: Float, override var y: Float) : Vec2t<Float>(x, y) {
constructor(v: Vec2t<Number>) : this(v.x, v.y)
}
Why if I type val a = Vec2(1)
val b = Vec2(a)
it says it can't find any function for Vec2(a)
?