[FIR] Add NO_THIS & INSTANCE_ACCESS_BEFORE_SUPER_CALL
This commit is contained in:
@@ -37,8 +37,8 @@ class A(
|
||||
Companion.CONST,
|
||||
Nested.CONST,
|
||||
Interface.CONST,
|
||||
a,
|
||||
b()
|
||||
<!UNRESOLVED_REFERENCE!>a<!>,
|
||||
<!UNRESOLVED_REFERENCE!>b<!>()
|
||||
)
|
||||
|
||||
class Nested {
|
||||
|
||||
+2
-2
@@ -22,8 +22,8 @@ class A : S {
|
||||
Companion.CONST,
|
||||
Nested.CONST,
|
||||
Interface.CONST,
|
||||
a,
|
||||
b()
|
||||
<!UNRESOLVED_REFERENCE!>a<!>,
|
||||
<!UNRESOLVED_REFERENCE!>b<!>()
|
||||
)
|
||||
|
||||
class Nested {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ val <T> List<T>.length = <!UNRESOLVED_REFERENCE!>size<!>
|
||||
|
||||
val <T> List<T>.length1 : Int get() = size
|
||||
|
||||
val String.bd = this + "!"
|
||||
val String.bd = <!NO_THIS!>this<!> + "!"
|
||||
|
||||
val String.bd1 : String get() = this + "!"
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ open class BodyTag(name : String) : TagWithText(name) {
|
||||
|
||||
class Body() : BodyTag(<!UNRESOLVED_REFERENCE!>name<!>) { // Must be an error!
|
||||
}
|
||||
class Body1() : BodyTag(this.<!UNRESOLVED_REFERENCE!>name<!>) { // Must be an error!
|
||||
class Body1() : BodyTag(<!NO_THIS!>this<!>.<!UNRESOLVED_REFERENCE!>name<!>) { // Must be an error!
|
||||
}
|
||||
|
||||
//more tests
|
||||
|
||||
Reference in New Issue
Block a user