Added init keyword to testdata
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user