diff --git a/compiler/testData/ir/irText/classes/enum.kt.txt b/compiler/testData/ir/irText/classes/enum.kt.txt index c2ab0c121b2..f0eeba98d9f 100644 --- a/compiler/testData/ir/irText/classes/enum.kt.txt +++ b/compiler/testData/ir/irText/classes/enum.kt.txt @@ -87,7 +87,7 @@ abstract enum class TestEnum4 : Enum { } override fun foo() { - println(message = TestEnum4) + println(message = TestEnum4.TEST1) } } @@ -108,7 +108,7 @@ abstract enum class TestEnum4 : Enum { } override fun foo() { - println(message = TestEnum4) + println(message = TestEnum4.TEST2) } } diff --git a/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt.txt b/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt.txt index 5163a81efd1..07e4e7ed651 100644 --- a/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt.txt +++ b/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt.txt @@ -27,7 +27,7 @@ annotation class TestAnn : Annotation { } -@TestAnn(x = En) +@TestAnn(x = En.A) fun test1() { } diff --git a/compiler/testData/ir/irText/declarations/annotations/fileAnnotations.kt.txt b/compiler/testData/ir/irText/declarations/annotations/fileAnnotations.kt.txt index 5e2e386d819..0bd670b91cc 100644 --- a/compiler/testData/ir/irText/declarations/annotations/fileAnnotations.kt.txt +++ b/compiler/testData/ir/irText/declarations/annotations/fileAnnotations.kt.txt @@ -1,7 +1,7 @@ @file:A(x = "File annotation") package test -@Target(allowedTargets = [AnnotationTarget]) +@Target(allowedTargets = [AnnotationTarget.FILE]) annotation class A : Annotation { constructor(x: String) /* primary */ val x: String diff --git a/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.kt.txt b/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.kt.txt index 166490a4b6d..efd5dd8a31b 100644 --- a/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.kt.txt +++ b/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.kt.txt @@ -1,4 +1,4 @@ -@Target(allowedTargets = [AnnotationTarget]) +@Target(allowedTargets = [AnnotationTarget.TYPEALIAS]) annotation class TestAnn : Annotation { constructor(x: String) /* primary */ val x: String diff --git a/compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.kt.txt b/compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.kt.txt index e69304f97f9..fbe44f28b87 100644 --- a/compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.kt.txt +++ b/compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.kt.txt @@ -1,4 +1,4 @@ -@Target(allowedTargets = [AnnotationTarget]) +@Target(allowedTargets = [AnnotationTarget.TYPE_PARAMETER]) annotation class Anno : Annotation { constructor() /* primary */ diff --git a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt.txt b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt.txt index 39513e1e4b9..830931d45ef 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt.txt +++ b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt.txt @@ -19,7 +19,7 @@ abstract enum class X : Enum { override val value: Function0 field = local fun (): String { - return B.() + return X.B.() } override get @@ -36,6 +36,6 @@ abstract enum class X : Enum { } fun box(): String { - return X.().invoke() + return X.B.().invoke() } diff --git a/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt.txt b/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt.txt index 222f0cb65e9..8f9e0cc800f 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt.txt +++ b/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt.txt @@ -28,8 +28,8 @@ open enum class MyEnum : Enum { val aLambda: Function0 field = local fun () { - Z.( = 1) - Z.foo() + MyEnum.Z.( = 1) + MyEnum.Z.foo() } get @@ -44,13 +44,13 @@ open enum class MyEnum : Enum { } init { - Z.( = 1) - Z.foo() + MyEnum.Z.( = 1) + MyEnum.Z.foo() } fun test() { - Z.( = 1) - Z.foo() + MyEnum.Z.( = 1) + MyEnum.Z.foo() } } diff --git a/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt.txt b/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt.txt index e38d74c6bc2..68b58c83c87 100644 --- a/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt.txt +++ b/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt.txt @@ -18,7 +18,7 @@ fun testVariableAssignment_throws(a: A) { { // BLOCK val tmp0_subject: A = a when { - EQEQ(arg0 = tmp0_subject, arg1 = A) -> x = 11 + EQEQ(arg0 = tmp0_subject, arg1 = A.V1) -> x = 11 true -> noWhenBranchMatchedException() } } @@ -28,7 +28,7 @@ fun testStatement_empty(a: A) { { // BLOCK val tmp0_subject: A = a when { - EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 /*~> Unit */ + EQEQ(arg0 = tmp0_subject, arg1 = A.V1) -> 1 /*~> Unit */ } } } @@ -37,7 +37,7 @@ fun testParenthesized_throwsJvm(a: A) { { // BLOCK val tmp0_subject: A = a when { - EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 /*~> Unit */ + EQEQ(arg0 = tmp0_subject, arg1 = A.V1) -> 1 /*~> Unit */ } } } @@ -46,7 +46,7 @@ fun testAnnotated_throwsJvm(a: A) { { // BLOCK val tmp0_subject: A = a when { - EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 /*~> Unit */ + EQEQ(arg0 = tmp0_subject, arg1 = A.V1) -> 1 /*~> Unit */ } } } @@ -55,7 +55,7 @@ fun testExpression_throws(a: A): Int { return { // BLOCK val tmp0_subject: A = a when { - EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 + EQEQ(arg0 = tmp0_subject, arg1 = A.V1) -> 1 true -> noWhenBranchMatchedException() } } @@ -68,7 +68,7 @@ fun testIfTheElseStatement_empty(a: A, flag: Boolean) { { // BLOCK val tmp0_subject: A = a when { - EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 /*~> Unit */ + EQEQ(arg0 = tmp0_subject, arg1 = A.V1) -> 1 /*~> Unit */ } } } @@ -82,7 +82,7 @@ fun testIfTheElseParenthesized_throwsJvm(a: A, flag: Boolean) { { // BLOCK val tmp0_subject: A = a when { - EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 /*~> Unit */ + EQEQ(arg0 = tmp0_subject, arg1 = A.V1) -> 1 /*~> Unit */ } } } @@ -96,7 +96,7 @@ fun testIfTheElseAnnotated_throwsJvm(a: A, flag: Boolean) { { // BLOCK val tmp0_subject: A = a when { - EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 /*~> Unit */ + EQEQ(arg0 = tmp0_subject, arg1 = A.V1) -> 1 /*~> Unit */ } } } @@ -108,7 +108,7 @@ fun testLambdaResultExpression_throws(a: A) { return { // BLOCK val tmp0_subject: A = a when { - EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 + EQEQ(arg0 = tmp0_subject, arg1 = A.V1) -> 1 true -> noWhenBranchMatchedException() } } diff --git a/compiler/testData/ir/irText/expressions/objectAsCallable.kt.txt b/compiler/testData/ir/irText/expressions/objectAsCallable.kt.txt index e7c546f9ec5..93d2702896f 100644 --- a/compiler/testData/ir/irText/expressions/objectAsCallable.kt.txt +++ b/compiler/testData/ir/irText/expressions/objectAsCallable.kt.txt @@ -35,6 +35,6 @@ val test1: Int get val test2: Int - field = En.invoke(i = 42) + field = En.X.invoke(i = 42) get diff --git a/compiler/testData/ir/irText/expressions/values.kt.txt b/compiler/testData/ir/irText/expressions/values.kt.txt index 3123fc82308..6eb9e198069 100644 --- a/compiler/testData/ir/irText/expressions/values.kt.txt +++ b/compiler/testData/ir/irText/expressions/values.kt.txt @@ -45,7 +45,7 @@ class Z { } fun test1(): Enum { - return Enum + return Enum.A } fun test2(): A { diff --git a/compiler/testData/ir/irText/singletons/enumEntry.kt.txt b/compiler/testData/ir/irText/singletons/enumEntry.kt.txt index b789a60e6b7..cf845162a34 100644 --- a/compiler/testData/ir/irText/singletons/enumEntry.kt.txt +++ b/compiler/testData/ir/irText/singletons/enumEntry.kt.txt @@ -24,7 +24,7 @@ open enum class Z : Enum { } fun test2() { - ENTRY.test() + Z.ENTRY.test() } } diff --git a/compiler/testData/ir/irText/stubs/javaEnum.kt.txt b/compiler/testData/ir/irText/stubs/javaEnum.kt.txt index b208fba4cc9..c54b4e80132 100644 --- a/compiler/testData/ir/irText/stubs/javaEnum.kt.txt +++ b/compiler/testData/ir/irText/stubs/javaEnum.kt.txt @@ -1,4 +1,4 @@ val test: JEnum - field = JEnum + field = JEnum.ONE get diff --git a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt.txt b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt.txt index bdbd716716f..e52daf75512 100644 --- a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt.txt +++ b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt.txt @@ -26,7 +26,7 @@ inline fun unsafeFlow(crossinline block: @ExtensionFunctionType Suspe TODO() } -@Deprecated(message = "binary compatibility with a version w/o FlowCollector receiver", level = DeprecationLevel) +@Deprecated(message = "binary compatibility with a version w/o FlowCollector receiver", level = DeprecationLevel.HIDDEN) fun Flow.onCompletion(action: SuspendFunction1<@ParameterName(name = "cause") Throwable?, Unit>): Flow { return .onCompletion(action = local suspend fun FlowCollector.(it: Throwable?) { action.invoke(p1 = it)