FIR: set isConst on primary constructor properties
This commit is contained in:
+4
-1
@@ -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|
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user