[FIR] Add NO_THIS & INSTANCE_ACCESS_BEFORE_SUPER_CALL
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
class A {
|
||||
constructor(x: Int = getSomeInt(), other: A = this, header: String = keker) {}
|
||||
fun getSomeInt() = 10
|
||||
var keker = "test"
|
||||
}
|
||||
|
||||
class B(other: B = this)
|
||||
|
||||
class C() {
|
||||
constructor(x: Int) : this({
|
||||
val a = 10
|
||||
this
|
||||
}) {}
|
||||
}
|
||||
|
||||
class D {
|
||||
var a = 20
|
||||
constructor() {
|
||||
this.a = 10
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user