diff --git a/compiler/testData/diagnostics/foreignAnnotationsTests/tests/kt47833.txt b/compiler/testData/diagnostics/foreignAnnotationsTests/tests/kt47833.txt new file mode 100644 index 00000000000..c53177d8c4c --- /dev/null +++ b/compiler/testData/diagnostics/foreignAnnotationsTests/tests/kt47833.txt @@ -0,0 +1,35 @@ +package + +public fun example(): Single + +public sealed class ClientBootResult { + protected constructor ClientBootResult() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +public object ClientBootSuccess : ClientBootResult { + private constructor ClientBootSuccess() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +@FunctionalInterface /* annotation class not found */ public interface Function { + public abstract fun apply(/*0*/ t: T!): R! + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +public open class Single { + public constructor Single() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + @io.reactivex.rxjava3.annotations.NonNull public final fun map(/*0*/ @io.reactivex.rxjava3.annotations.NonNull mapper: @io.reactivex.rxjava3.annotations.NonNull Function!): @io.reactivex.rxjava3.annotations.NonNull Single! + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String + + // Static members + @io.reactivex.rxjava3.annotations.NonNull public open fun just(/*0*/ item: T!): @io.reactivex.rxjava3.annotations.NonNull Single! +} diff --git a/compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithCallableReferences.kt b/compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithCallableReferences.kt index 5d01937fcf3..d7ef40e03a8 100644 --- a/compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithCallableReferences.kt +++ b/compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithCallableReferences.kt @@ -39,7 +39,7 @@ fun select(vararg x: R) = x[0] fun poll0(): Flow { return flow { val inv = select(::bar, ::foo) - inv() + inv() } } @@ -53,7 +53,7 @@ fun poll01(): Flow { fun poll02(): Flow { return flow { val inv = select(::bar3, ::foo3) - inv() + inv() } } @@ -67,7 +67,7 @@ fun poll03(): Flow { fun poll04(): Flow { return flow { val inv = select(::bar5, ::foo5) - inv + inv } } @@ -81,7 +81,7 @@ fun poll05(): Flow { fun poll06(): Flow { return flow { val inv = select(foo7(), ::Foo7) - inv + inv } } @@ -137,14 +137,14 @@ fun poll16(flag: Boolean): Flow { fun poll17(flag: Boolean): Flow { return flow { val inv = if (flag) { foo7() } else { ::Foo7 } - inv + inv } } fun poll2(flag: Boolean): Flow { return flow { val inv = when (flag) { true -> ::bar else -> ::foo } - inv() + inv() } } @@ -158,7 +158,7 @@ fun poll21(flag: Boolean): Flow { fun poll22(flag: Boolean): Flow { return flow { val inv = when (flag) { true -> ::bar3 else -> ::foo3 } - inv() + inv() } } @@ -193,7 +193,7 @@ fun poll26(flag: Boolean): Flow { fun poll3(flag: Boolean): Flow { return flow { val inv = when (flag) { true -> ::bar false -> ::foo } - inv() + inv() } } @@ -207,7 +207,7 @@ fun poll31(flag: Boolean): Flow { fun poll32(flag: Boolean): Flow { return flow { val inv = when (flag) { true -> ::bar3 false -> ::foo3 } - inv() + inv() } } @@ -333,7 +333,7 @@ fun poll55(): Flow { fun poll56(): Flow { return flow { val inv = try { ::Foo7 } catch (e: Exception) { foo7() } finally { foo7() } - inv + inv } } @@ -486,8 +486,8 @@ fun poll86(): Flow { fun poll87(): Flow { return flow { - val inv = ::Foo7 in setOf(foo7()) - inv + val inv = ::Foo7 in setOf(foo7()) + inv } } diff --git a/compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithCallableReferencesDontCareTypeInBlockExression.kt b/compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithCallableReferencesDontCareTypeInBlockExression.kt index 521a512472a..a75eb326d5f 100644 --- a/compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithCallableReferencesDontCareTypeInBlockExression.kt +++ b/compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithCallableReferencesDontCareTypeInBlockExression.kt @@ -86,7 +86,7 @@ fun poll16(flag: Boolean): Flow { fun poll17(flag: Boolean): Flow { return flow { val inv = if (flag) { foo7() } else { ::Foo7 } - inv + inv } } @@ -184,6 +184,6 @@ fun poll55(): Flow { fun poll56(): Flow { return flow { val inv = try { ::Foo7 } catch (e: Exception) { foo7() } finally { foo7() } - inv + inv } } diff --git a/compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithCallableReferencesUnrestricted.kt b/compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithCallableReferencesUnrestricted.kt index 9a966645ea2..dc587d67616 100644 --- a/compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithCallableReferencesUnrestricted.kt +++ b/compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithCallableReferencesUnrestricted.kt @@ -445,7 +445,7 @@ fun poll8(): Flow { fun poll81(): Flow { return flow { - val inv = ::bar2 in setOf(::foo2) + val inv = ::bar2 in setOf(::foo2) inv() } } @@ -459,7 +459,7 @@ fun poll82(): Flow { fun poll83(): Flow { return flow { - val inv = ::bar4 in setOf(::foo4) + val inv = ::bar4 in setOf(::foo4) inv } } @@ -487,7 +487,7 @@ fun poll86(): Flow { fun poll87(): Flow { return flow { - val inv = ::Foo7 in setOf(foo7()) + val inv = ::Foo7 in setOf(foo7()) inv } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.fir.kt deleted file mode 100644 index 7c990aac113..00000000000 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.fir.kt +++ /dev/null @@ -1,9 +0,0 @@ -// ISSUE: KT-41308, KT-47830 - -fun main() { - sequence { - val list: List? = null - val outputList = ")!>list ?: listOf() - yieldAll(outputList) - } -} diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.kt index 7c990aac113..7b8f170f116 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt41308.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // ISSUE: KT-41308, KT-47830 fun main() { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ForeignAnnotationsCompiledJavaTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ForeignAnnotationsCompiledJavaTestGenerated.java index b091b798330..96c5983b144 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ForeignAnnotationsCompiledJavaTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ForeignAnnotationsCompiledJavaTestGenerated.java @@ -80,18 +80,18 @@ public class ForeignAnnotationsCompiledJavaTestGenerated extends AbstractForeign runTest("compiler/testData/diagnostics/foreignAnnotationsTests/tests/irrelevantQualifierNicknames.kt"); } - @Test - @TestMetadata("kt47920.kt") - public void testKt47920() throws Exception { - runTest("compiler/testData/diagnostics/foreignAnnotationsTests/tests/kt47920.kt"); - } - @Test @TestMetadata("kt47833.kt") public void testKt47833() throws Exception { runTest("compiler/testData/diagnostics/foreignAnnotationsTests/tests/kt47833.kt"); } + @Test + @TestMetadata("kt47920.kt") + public void testKt47920() throws Exception { + runTest("compiler/testData/diagnostics/foreignAnnotationsTests/tests/kt47920.kt"); + } + @Test @TestMetadata("lombokSimple.kt") public void testLombokSimple() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ForeignAnnotationsCompiledJavaWithPsiClassReadingTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ForeignAnnotationsCompiledJavaWithPsiClassReadingTestGenerated.java index c8d3a90b0a0..bb718c9bbea 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ForeignAnnotationsCompiledJavaWithPsiClassReadingTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ForeignAnnotationsCompiledJavaWithPsiClassReadingTestGenerated.java @@ -80,18 +80,18 @@ public class ForeignAnnotationsCompiledJavaWithPsiClassReadingTestGenerated exte runTest("compiler/testData/diagnostics/foreignAnnotationsTests/tests/irrelevantQualifierNicknames.kt"); } - @Test - @TestMetadata("kt47920.kt") - public void testKt47920() throws Exception { - runTest("compiler/testData/diagnostics/foreignAnnotationsTests/tests/kt47920.kt"); - } - @Test @TestMetadata("kt47833.kt") public void testKt47833() throws Exception { runTest("compiler/testData/diagnostics/foreignAnnotationsTests/tests/kt47833.kt"); } + @Test + @TestMetadata("kt47920.kt") + public void testKt47920() throws Exception { + runTest("compiler/testData/diagnostics/foreignAnnotationsTests/tests/kt47920.kt"); + } + @Test @TestMetadata("lombokSimple.kt") public void testLombokSimple() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ForeignAnnotationsSourceJavaTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ForeignAnnotationsSourceJavaTestGenerated.java index 33d337ec566..5da532b4504 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ForeignAnnotationsSourceJavaTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ForeignAnnotationsSourceJavaTestGenerated.java @@ -80,18 +80,18 @@ public class ForeignAnnotationsSourceJavaTestGenerated extends AbstractForeignAn runTest("compiler/testData/diagnostics/foreignAnnotationsTests/tests/irrelevantQualifierNicknames.kt"); } - @Test - @TestMetadata("kt47920.kt") - public void testKt47920() throws Exception { - runTest("compiler/testData/diagnostics/foreignAnnotationsTests/tests/kt47920.kt"); - } - @Test @TestMetadata("kt47833.kt") public void testKt47833() throws Exception { runTest("compiler/testData/diagnostics/foreignAnnotationsTests/tests/kt47833.kt"); } + @Test + @TestMetadata("kt47920.kt") + public void testKt47920() throws Exception { + runTest("compiler/testData/diagnostics/foreignAnnotationsTests/tests/kt47920.kt"); + } + @Test @TestMetadata("lombokSimple.kt") public void testLombokSimple() throws Exception {