Added init keyword to testdata
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
fun box(): String {
|
||||
class A {
|
||||
var result: String = "Fail";
|
||||
{
|
||||
init {
|
||||
result = "OK"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ fun box(): String {
|
||||
class L : C() {
|
||||
val a: Any
|
||||
|
||||
{
|
||||
init {
|
||||
a = {}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user