Don't generate empty constructor if there is secondary one with empty parameter list

This commit is contained in:
Denis Zharkov
2015-03-10 18:22:33 +03:00
parent aab706a6a6
commit 582755e71a
4 changed files with 31 additions and 0 deletions
@@ -0,0 +1,4 @@
// do not report generate empty synthetic constructor by primary as it leads to CONFLICTING_JVM_DECLARATIONS
class A(val x: Int = 1, val y: Int = 2) {
constructor(): this(0, 0) {}
}
@@ -0,0 +1,11 @@
package
internal final class A {
public constructor A()
public constructor A(/*0*/ x: kotlin.Int = ..., /*1*/ y: kotlin.Int = ...)
internal final val x: kotlin.Int
internal final val y: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}