[FIR] Add support for OVERRIDE_CANNOT_BE_STATIC diagnostic

This commit is contained in:
Nikolay Lunyak
2021-07-28 19:54:54 +03:00
parent 5607be3920
commit 276bfd9305
11 changed files with 99 additions and 7 deletions
@@ -28,12 +28,12 @@ class A {
@JvmStatic val z = 1;
@JvmStatic override val base1: Int = 0
<!OVERRIDE_CANNOT_BE_STATIC!>@JvmStatic override val base1: Int = 0<!>
@JvmStatic <!NON_FINAL_MEMBER_IN_OBJECT!>open<!> fun f() {}
override val base2: Int = 0
@JvmStatic get
<!OVERRIDE_CANNOT_BE_STATIC!>@JvmStatic get<!>
}
var p:Int = 1