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
@@ -54,7 +54,7 @@ z = 8 !<v16>: *
y = 9 !<v19>: *
{ y = 9 } !<v19>: * COPY
=====================
== <init> ==
== A ==
constructor(): this('a') {
y = 2
}
@@ -66,7 +66,7 @@ this('a') <v1>: * NEW: call(this('a'), <init>|<v0>) -> <v1>
y = 2 !<v4>: *
{ y = 2 } !<v4>: * COPY
=====================
== <init> ==
== A ==
constructor(a: Int, b: Int = 3): this(b.toChar()) {
y = x
}