FIR: set isConst on primary constructor properties

This commit is contained in:
Mikhail Glukhikh
2021-03-04 12:09:14 +03:00
parent d7a6fc80b0
commit 6470b713d5
7 changed files with 32 additions and 16 deletions
@@ -12,7 +12,7 @@ object A {
const val inObject: Int = 4
}
class B(const val constructor: Int = 5)
class B(<!CONST_VAL_NOT_TOP_LEVEL_OR_OBJECT!>const<!> val constructor: Int = 5)
abstract class C {
<!INCOMPATIBLE_MODIFIERS!>open<!> <!CONST_VAL_NOT_TOP_LEVEL_OR_OBJECT, INCOMPATIBLE_MODIFIERS!>const<!> val x: Int = 6