From 271e689d4b37850db19358f313a6303fef7884ca Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Sat, 15 Apr 2023 12:52:56 +0200 Subject: [PATCH] [kotlin] update test data: property constant initializer (as placeholder) are included in cls stubs GitOrigin-RevId: 516ea5afbdada456080204f1406a4be736ca2908 --- .../testData/decompiler/decompiledText/Const.expected.kt | 3 +-- .../decompiler/decompiledTextJvm/MultifileClass.expected.kt | 2 +- .../decompiledTextJvm/PrivateConstField.expected.kt | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/kotlin/idea/tests/testData/decompiler/decompiledText/Const.expected.kt b/plugins/kotlin/idea/tests/testData/decompiler/decompiledText/Const.expected.kt index 1a024a27b342..68d3ca87310a 100644 --- a/plugins/kotlin/idea/tests/testData/decompiler/decompiledText/Const.expected.kt +++ b/plugins/kotlin/idea/tests/testData/decompiler/decompiledText/Const.expected.kt @@ -4,6 +4,5 @@ package test public object Const { - private const final val inObject: kotlin.Int /* compiled code */ + private const final val inObject: kotlin.Int = COMPILED_CODE /* compiled code */ } - diff --git a/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/MultifileClass.expected.kt b/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/MultifileClass.expected.kt index 02a8d50a1553..73097ce05584 100644 --- a/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/MultifileClass.expected.kt +++ b/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/MultifileClass.expected.kt @@ -12,7 +12,7 @@ public fun fn1b(): kotlin.Unit { /* compiled code */ } public fun kotlin.String.fn2b(): kotlin.Unit { /* compiled code */ } -@kotlin.Deprecated public const val annotatedConstVal: kotlin.Int /* compiled code */ +@kotlin.Deprecated public const val annotatedConstVal: kotlin.Int = COMPILED_CODE /* compiled code */ public val val1a: kotlin.Int /* compiled code */ diff --git a/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/PrivateConstField.expected.kt b/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/PrivateConstField.expected.kt index 1c3cdedb63c0..66724c7cf2a0 100644 --- a/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/PrivateConstField.expected.kt +++ b/plugins/kotlin/idea/tests/testData/decompiler/decompiledTextJvm/PrivateConstField.expected.kt @@ -5,9 +5,9 @@ package test public final class PrivateConstField public constructor() { private companion object { - public const final val CONST: kotlin.Int /* compiled code */ + public const final val CONST: kotlin.Int = COMPILED_CODE /* compiled code */ - @test.A @field:java.lang.Deprecated public const final val CONST_WITH_ANNOTATION: kotlin.Int /* compiled code */ + @test.A @field:java.lang.Deprecated public const final val CONST_WITH_ANNOTATION: kotlin.Int = COMPILED_CODE /* compiled code */ public final val field: kotlin.Int /* compiled code */