Use class name as secondary constructor name

This commit is contained in:
Alexey Sedunov
2015-03-18 00:19:41 +03:00
parent c0c1273388
commit 7d278f2f42
11 changed files with 28 additions and 28 deletions
@@ -41,7 +41,7 @@ error:
sink:
<SINK> PREV:[<ERROR>, <END>]
=====================
== <init> ==
== A ==
constructor() {
x = 1
y = 2
@@ -81,7 +81,7 @@ error:
sink:
<SINK> PREV:[<ERROR>, <END>]
=====================
== <init> ==
== A ==
constructor(a: Int, b: Int = 3) {
x = a
y = x
@@ -132,7 +132,7 @@ error:
sink:
<SINK> PREV:[<ERROR>, <END>]
=====================
== <init> ==
== A ==
constructor(a: String, b: Int = 4): this() {
y = 5
}
@@ -162,7 +162,7 @@ error:
sink:
<SINK> PREV:[<ERROR>, <END>]
=====================
== <init> ==
== A ==
constructor(a: Double, b: Int = 6): this(a.toInt()) {
y = 7
}