class A(x: Double) { constructor(x: Int) { } constructor(x: String) { } } val v = A(1.0)