FirPropertyAccessorChecker: add three new diagnostics

This commit is contained in:
Mikhail Glukhikh
2021-05-07 12:28:56 +03:00
parent 1a3b5657c7
commit 6618b4ea57
23 changed files with 131 additions and 96 deletions
@@ -8,5 +8,5 @@ class My {
val another: String = delegate
var delegateWithBackingField: String by kotlin.properties.Delegates.notNull()
private set(arg) { <!UNRESOLVED_REFERENCE!>field<!> = arg }
<!ACCESSOR_FOR_DELEGATED_PROPERTY!>private set(arg) { <!UNRESOLVED_REFERENCE!>field<!> = arg }<!>
}
@@ -45,7 +45,7 @@ interface B {
@JvmStatic get
private var foo8 = 1
@JvmStatic public set
@JvmStatic <!SETTER_VISIBILITY_INCONSISTENT_WITH_PROPERTY_VISIBILITY!>public<!> set
public var foo9 = 1
@JvmStatic private set
@@ -47,7 +47,7 @@ interface B {
@JvmStatic get
private var foo8 = 1
@JvmStatic public set
@JvmStatic <!SETTER_VISIBILITY_INCONSISTENT_WITH_PROPERTY_VISIBILITY!>public<!> set
public var foo9 = 1
@JvmStatic private set
@@ -46,7 +46,7 @@ interface B {
@JvmStatic get
private var foo8 = 1
@JvmStatic public set
@JvmStatic <!SETTER_VISIBILITY_INCONSISTENT_WITH_PROPERTY_VISIBILITY!>public<!> set
public var foo9 = 1
@JvmStatic private set