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
@@ -1,7 +1,7 @@
fun box(): String {
class A {
var result: String = "Fail";
{
init {
result = "OK"
}
}
@@ -4,7 +4,7 @@ fun box(): String {
class L : C() {
val a: Any
{
init {
a = {}
}
}
@@ -6,7 +6,7 @@ fun box(): String {
val l = object : C {
override val a: Any
{
init {
a = {}
}
}
@@ -15,7 +15,7 @@ class PrivatePropertyGet {
class PrivatePropertySet {
private var x = "a"
inner class Inner { { x = "b" } }
inner class Inner { init { x = "b" } }
}
class PrivateMethod {