Added init keyword to testdata

This commit is contained in:
Stanislav Erokhin
2015-04-01 05:21:26 +03:00
parent 6ab83c9b8c
commit b152211096
88 changed files with 114 additions and 114 deletions
@@ -2,7 +2,7 @@ var global = 0;
class C {
companion object {
{
init {
global = 1;
}
}
@@ -1,7 +1,7 @@
class C() {
public var f: Int
{
init {
$f = 610
}
}
@@ -5,7 +5,7 @@ class World() {
public val items: ArrayList<Item> = ArrayList<Item>()
inner class Item() {
{
init {
items.add(this)
}
}
@@ -3,7 +3,7 @@ class A {
val b = 0
val c = b
{
init {
val d = b
}
}
@@ -1,5 +1,5 @@
class Reluctant() {
{
init {
throw Exception("I'm not coming out")
}
}