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
@@ -11,10 +11,13 @@ FILE: constValNotTopLevelOrObject.kt
}
public final class C : R|kotlin/Any| {
public constructor(): R|C| {
public constructor(b: R|kotlin/Boolean|): R|C| {
super<R|kotlin/Any|>()
}
public final const val b: R|kotlin/Boolean| = R|<local>/b|
public get(): R|kotlin/Boolean|
public final const val c: R|kotlin/Int| = Int(3)
public get(): R|kotlin/Int|
@@ -4,7 +4,7 @@ object B {
const val b = 2
}
class C {
class C(<!CONST_VAL_NOT_TOP_LEVEL_OR_OBJECT!>const<!> val b: Boolean) {
<!CONST_VAL_NOT_TOP_LEVEL_OR_OBJECT!>const<!> val c = 3
}