From befa1e114c50e4af49fa5e174e07c6c8bf8120c4 Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Mon, 20 Apr 2020 00:18:16 +0300 Subject: [PATCH] Add tests for obsolete issues #KT-38092 Obsolete #KT-38179 Obsolete #KT-35105 Obsolete #KT-36696 Obsolete #KT-36947 Obsolete #KT-37337 Obsolete #KT-37309 Obsolete #KT-37727 Obsolete #KT-37735 Obsolete #KT-37853 Obsolete #KT-37920 Obsolete #KT-37709 Obsolete #KT-37706 Obsolete --- ...irOldFrontendDiagnosticsTestGenerated.java | 15 ++++++ ...endDiagnosticsTestWithStdlibGenerated.java | 15 ++++++ .../ir/FirBlackBoxCodegenTestGenerated.java | 10 ++++ .../earlyReturnInsideCrossinlineLambda.kt | 15 ++++++ .../plusAssignWithComplexRHS.kt | 10 ++++ .../tests/callableReference/kt35105.kt | 21 ++++++++ .../tests/callableReference/kt35105.txt | 12 +++++ .../diagnostics/tests/inference/kt37853.kt | 13 +++++ .../diagnostics/tests/inference/kt37853.txt | 13 +++++ .../diagnostics/tests/j+k/sam/kt37920.kt | 28 +++++++++++ .../diagnostics/tests/j+k/sam/kt37920.txt | 21 ++++++++ .../coroutines/basicBuildListBuildMap.kt | 13 +++++ .../coroutines/basicBuildListBuildMap.txt | 4 ++ .../testsWithStdLib/coroutines/kt36947.kt | 6 +++ .../testsWithStdLib/coroutines/kt36947.txt | 3 ++ .../testsWithStdLib/coroutines/kt37309.kt | 24 ++++++++++ .../testsWithStdLib/coroutines/kt37309.txt | 12 +++++ .../testsWithStdLib/coroutines/kt38179.kt | 19 ++++++++ .../testsWithStdLib/coroutines/kt38179.txt | 48 +++++++++++++++++++ .../testsWithStdLib/regression/kt37706.fir.kt | 5 ++ .../testsWithStdLib/regression/kt37706.kt | 5 ++ .../testsWithStdLib/regression/kt37706.txt | 3 ++ .../testsWithStdLib/regression/kt37727.fir.kt | 5 ++ .../testsWithStdLib/regression/kt37727.kt | 5 ++ .../testsWithStdLib/regression/kt37727.txt | 12 +++++ .../testsWithStdLib/regression/kt37735.kt | 24 ++++++++++ .../testsWithStdLib/regression/kt37735.txt | 48 +++++++++++++++++++ .../checkers/DiagnosticsTestGenerated.java | 15 ++++++ .../DiagnosticsTestWithStdLibGenerated.java | 35 ++++++++++++++ ...ticsTestWithStdLibUsingJavacGenerated.java | 35 ++++++++++++++ .../DiagnosticsUsingJavacTestGenerated.java | 15 ++++++ .../codegen/BlackBoxCodegenTestGenerated.java | 10 ++++ .../LightAnalysisModeTestGenerated.java | 10 ++++ .../ir/IrBlackBoxCodegenTestGenerated.java | 10 ++++ .../IrJsCodegenBoxTestGenerated.java | 10 ++++ .../semantics/JsCodegenBoxTestGenerated.java | 10 ++++ 36 files changed, 559 insertions(+) create mode 100644 compiler/testData/codegen/box/inference/earlyReturnInsideCrossinlineLambda.kt create mode 100644 compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt create mode 100644 compiler/testData/diagnostics/tests/callableReference/kt35105.kt create mode 100644 compiler/testData/diagnostics/tests/callableReference/kt35105.txt create mode 100644 compiler/testData/diagnostics/tests/inference/kt37853.kt create mode 100644 compiler/testData/diagnostics/tests/inference/kt37853.txt create mode 100644 compiler/testData/diagnostics/tests/j+k/sam/kt37920.kt create mode 100644 compiler/testData/diagnostics/tests/j+k/sam/kt37920.txt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/coroutines/basicBuildListBuildMap.kt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/coroutines/basicBuildListBuildMap.txt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/coroutines/kt36947.kt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/coroutines/kt36947.txt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/coroutines/kt37309.kt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/coroutines/kt37309.txt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/coroutines/kt38179.kt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/coroutines/kt38179.txt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.fir.kt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.kt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.txt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.fir.kt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.kt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.txt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/regression/kt37735.kt create mode 100644 compiler/testData/diagnostics/testsWithStdLib/regression/kt37735.txt diff --git a/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/FirOldFrontendDiagnosticsTestGenerated.java b/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/FirOldFrontendDiagnosticsTestGenerated.java index aa58bbfcf0d..cf6cea15859 100644 --- a/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/FirOldFrontendDiagnosticsTestGenerated.java +++ b/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/FirOldFrontendDiagnosticsTestGenerated.java @@ -1879,6 +1879,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte runTest("compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.kt"); } + @TestMetadata("kt35105.kt") + public void testKt35105() throws Exception { + runTest("compiler/testData/diagnostics/tests/callableReference/kt35105.kt"); + } + @TestMetadata("kt35959.kt") public void testKt35959() throws Exception { runTest("compiler/testData/diagnostics/tests/callableReference/kt35959.kt"); @@ -10131,6 +10136,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte runTest("compiler/testData/diagnostics/tests/inference/kt36819.kt"); } + @TestMetadata("kt37853.kt") + public void testKt37853() throws Exception { + runTest("compiler/testData/diagnostics/tests/inference/kt37853.kt"); + } + @TestMetadata("kt6175.kt") public void testKt6175() throws Exception { runTest("compiler/testData/diagnostics/tests/inference/kt6175.kt"); @@ -13465,6 +13475,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte runTest("compiler/testData/diagnostics/tests/j+k/sam/inheritedStaticSam.kt"); } + @TestMetadata("kt37920.kt") + public void testKt37920() throws Exception { + runTest("compiler/testData/diagnostics/tests/j+k/sam/kt37920.kt"); + } + @TestMetadata("privateCandidatesWithWrongArguments.kt") public void testPrivateCandidatesWithWrongArguments() throws Exception { runTest("compiler/testData/diagnostics/tests/j+k/sam/privateCandidatesWithWrongArguments.kt"); diff --git a/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/FirOldFrontendDiagnosticsTestWithStdlibGenerated.java b/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/FirOldFrontendDiagnosticsTestWithStdlibGenerated.java index 34cf3febbfa..09bce6e5767 100644 --- a/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/FirOldFrontendDiagnosticsTestWithStdlibGenerated.java +++ b/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/FirOldFrontendDiagnosticsTestWithStdlibGenerated.java @@ -2399,6 +2399,21 @@ public class FirOldFrontendDiagnosticsTestWithStdlibGenerated extends AbstractFi runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt37554.kt"); } + @TestMetadata("kt37706.kt") + public void testKt37706() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.kt"); + } + + @TestMetadata("kt37727.kt") + public void testKt37727() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.kt"); + } + + @TestMetadata("kt37735.kt") + public void testKt37735() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt37735.kt"); + } + @TestMetadata("kt9820_javaFunctionTypeInheritor.kt") public void testKt9820_javaFunctionTypeInheritor() throws Exception { runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.kt"); diff --git a/compiler/fir/fir2ir/tests/org/jetbrains/kotlin/codegen/ir/FirBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests/org/jetbrains/kotlin/codegen/ir/FirBlackBoxCodegenTestGenerated.java index 2a47c910a76..3901a18ea31 100644 --- a/compiler/fir/fir2ir/tests/org/jetbrains/kotlin/codegen/ir/FirBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests/org/jetbrains/kotlin/codegen/ir/FirBlackBoxCodegenTestGenerated.java @@ -12081,6 +12081,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inference/coerctionToUnitForLastExpressionWithStarProjection.kt"); } + @TestMetadata("earlyReturnInsideCrossinlineLambda.kt") + public void testEarlyReturnInsideCrossinlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inference/earlyReturnInsideCrossinlineLambda.kt"); + } + @TestMetadata("integerLiteralTypeInLamdaReturnType.kt") public void testIntegerLiteralTypeInLamdaReturnType() throws Exception { runTest("compiler/testData/codegen/box/inference/integerLiteralTypeInLamdaReturnType.kt"); @@ -18121,6 +18126,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/operatorConventions/overloadedSet.kt"); } + @TestMetadata("plusAssignWithComplexRHS.kt") + public void testPlusAssignWithComplexRHS() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt"); + } + @TestMetadata("plusExplicit.kt") public void testPlusExplicit() throws Exception { runTest("compiler/testData/codegen/box/operatorConventions/plusExplicit.kt"); diff --git a/compiler/testData/codegen/box/inference/earlyReturnInsideCrossinlineLambda.kt b/compiler/testData/codegen/box/inference/earlyReturnInsideCrossinlineLambda.kt new file mode 100644 index 00000000000..80fed984de4 --- /dev/null +++ b/compiler/testData/codegen/box/inference/earlyReturnInsideCrossinlineLambda.kt @@ -0,0 +1,15 @@ +inline fun runReadAction(crossinline runnable: () -> T): T = runnable() + +class Foo { + fun infer(): K = "OK" as K +} + +fun bar(): Int? = 42 + +fun box(): String { + return runReadAction { + bar() ?: return@runReadAction "Failed" + val foo = Foo() + foo.infer() + } +} diff --git a/compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt b/compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt new file mode 100644 index 00000000000..67f0ea70f8d --- /dev/null +++ b/compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt @@ -0,0 +1,10 @@ +// KJS_WITH_FULL_RUNTIME +// WITH_RUNTIME +// IGNORE_BACKEND_FIR: JVM_IR + +var map: Map> = emptyMap() + +fun box(): String { + map += "OK" to emptySet() + return map.keys.first().toString() +} diff --git a/compiler/testData/diagnostics/tests/callableReference/kt35105.kt b/compiler/testData/diagnostics/tests/callableReference/kt35105.kt new file mode 100644 index 00000000000..f6ab6937e86 --- /dev/null +++ b/compiler/testData/diagnostics/tests/callableReference/kt35105.kt @@ -0,0 +1,21 @@ +// FIR_IDENTICAL +// !DIAGNOSTICS: -UNUSED_PARAMETER + +import kotlin.reflect.KClass +import kotlin.reflect.KMutableProperty1 + +class Testclass { + var entry: String = "" + + fun distinct(distinctField: KMutableProperty1, entryClazz: KClass, vararg filter: String) { + return + } + + inline fun distinct(distinctField: KMutableProperty1, vararg filter: String) { + return distinct(distinctField, T::class, *filter) + } + + fun test() { + distinct(Testclass::entry, "filter") + } +} diff --git a/compiler/testData/diagnostics/tests/callableReference/kt35105.txt b/compiler/testData/diagnostics/tests/callableReference/kt35105.txt new file mode 100644 index 00000000000..9644ab12554 --- /dev/null +++ b/compiler/testData/diagnostics/tests/callableReference/kt35105.txt @@ -0,0 +1,12 @@ +package + +public final class Testclass { + public constructor Testclass() + public final var entry: kotlin.String + public final inline fun distinct(/*0*/ distinctField: kotlin.reflect.KMutableProperty1, /*1*/ vararg filter: kotlin.String /*kotlin.Array*/): kotlin.Unit + public final fun distinct(/*0*/ distinctField: kotlin.reflect.KMutableProperty1, /*1*/ entryClazz: kotlin.reflect.KClass, /*2*/ vararg filter: kotlin.String /*kotlin.Array*/): kotlin.Unit + 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 final fun test(): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} diff --git a/compiler/testData/diagnostics/tests/inference/kt37853.kt b/compiler/testData/diagnostics/tests/inference/kt37853.kt new file mode 100644 index 00000000000..4e74e5095e5 --- /dev/null +++ b/compiler/testData/diagnostics/tests/inference/kt37853.kt @@ -0,0 +1,13 @@ +// FIR_IDENTICAL +// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE + +fun test() { + val bug = storing { "" }.default(null) +} + +class Bar + +fun Bar.default(defaultValue: T): Bar = TODO() +fun Bar.default(defaultValue: () -> T): Bar = TODO() + +fun storing(transform: String.() -> T): Bar = TODO() diff --git a/compiler/testData/diagnostics/tests/inference/kt37853.txt b/compiler/testData/diagnostics/tests/inference/kt37853.txt new file mode 100644 index 00000000000..b2f2a39f0f9 --- /dev/null +++ b/compiler/testData/diagnostics/tests/inference/kt37853.txt @@ -0,0 +1,13 @@ +package + +public fun storing(/*0*/ transform: kotlin.String.() -> T): Bar +public fun test(): kotlin.Unit +public fun Bar.default(/*0*/ defaultValue: () -> T): Bar +public fun Bar.default(/*0*/ defaultValue: T): Bar + +public final class Bar { + public constructor Bar() + 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 +} diff --git a/compiler/testData/diagnostics/tests/j+k/sam/kt37920.kt b/compiler/testData/diagnostics/tests/j+k/sam/kt37920.kt new file mode 100644 index 00000000000..908a6ddc57e --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/sam/kt37920.kt @@ -0,0 +1,28 @@ +// FIR_IDENTICAL +// !DIAGNOSTICS: -UNUSED_VARIABLE + +// FILE: A.java + +public class A { + public static T compute(ThrowableComputable action) throws E { + return (T) action; + } +} + +// FILE: ThrowableComputable.java + +public interface ThrowableComputable { + T compute() throws E; +} + +// FILE: test.kt + +fun main() { + val headers = A.compute( + ThrowableComputable { + getCollection() + } + ) +} + +fun getCollection(): Collection = TODO() \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/j+k/sam/kt37920.txt b/compiler/testData/diagnostics/tests/j+k/sam/kt37920.txt new file mode 100644 index 00000000000..385fc744d56 --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/sam/kt37920.txt @@ -0,0 +1,21 @@ +package + +public fun getCollection(): kotlin.collections.Collection +public fun main(): kotlin.Unit + +public open class A { + public constructor A() + 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 + + // Static members + public open fun compute(/*0*/ action: ThrowableComputable!): T! +} + +public interface ThrowableComputable { + public abstract fun compute(): T! + 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 +} diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/basicBuildListBuildMap.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/basicBuildListBuildMap.kt new file mode 100644 index 00000000000..5e9eec543e2 --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/basicBuildListBuildMap.kt @@ -0,0 +1,13 @@ +// !USE_EXPERIMENTAL: kotlin.RequiresOptIn + +@OptIn(ExperimentalStdlibApi::class) +fun test1(): List = buildList { + add(1) + reverse() + add(4) +} + +@OptIn(ExperimentalStdlibApi::class) +fun test2(): Map = buildMap { + put(0, 0) +} diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/basicBuildListBuildMap.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/basicBuildListBuildMap.txt new file mode 100644 index 00000000000..ecdd26f7d36 --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/basicBuildListBuildMap.txt @@ -0,0 +1,4 @@ +package + +@kotlin.OptIn(markerClass = {kotlin.ExperimentalStdlibApi::class}) public fun test1(): kotlin.collections.List +@kotlin.OptIn(markerClass = {kotlin.ExperimentalStdlibApi::class}) public fun test2(): kotlin.collections.Map diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt36947.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt36947.kt new file mode 100644 index 00000000000..b4e2ed48a6e --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt36947.kt @@ -0,0 +1,6 @@ +val foo = iterator { + yield(0) + val nullable: String? = null + nullable.length + nullable.get(2) +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt36947.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt36947.txt new file mode 100644 index 00000000000..583e4dac381 --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt36947.txt @@ -0,0 +1,3 @@ +package + +public val foo: kotlin.collections.Iterator diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt37309.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt37309.kt new file mode 100644 index 00000000000..79c362d4e5d --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt37309.kt @@ -0,0 +1,24 @@ +// !USE_EXPERIMENTAL: kotlin.RequiresOptIn +// !DIAGNOSTICS: -UNUSED_VARIABLE + +import kotlin.experimental.ExperimentalTypeInference + +@OptIn(ExperimentalTypeInference::class) +fun myBuildList(@BuilderInference builderAction: MutableList.() -> Unit) { + ArrayList().builderAction() +} + +@OptIn(ExperimentalStdlibApi::class) +fun main() { + val newList1 = myBuildList { + addAll( + listOf(1).map { Foo(null) } + ) + } + + val newList2 = buildList { + addAll(listOf(1,2,3).map{ Foo(null) }) + } +} + +class Foo(val notNullProp: String) \ No newline at end of file diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt37309.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt37309.txt new file mode 100644 index 00000000000..b497685d03c --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt37309.txt @@ -0,0 +1,12 @@ +package + +@kotlin.OptIn(markerClass = {kotlin.ExperimentalStdlibApi::class}) public fun main(): kotlin.Unit +@kotlin.OptIn(markerClass = {kotlin.experimental.ExperimentalTypeInference::class}) public fun myBuildList(/*0*/ @kotlin.BuilderInference builderAction: kotlin.collections.MutableList.() -> kotlin.Unit): kotlin.Unit + +public final class Foo { + public constructor Foo(/*0*/ notNullProp: kotlin.String) + public final val notNullProp: kotlin.String + 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 +} diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt38179.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt38179.kt new file mode 100644 index 00000000000..112257d46e4 --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt38179.kt @@ -0,0 +1,19 @@ +// FULL_JDK + +import java.util.* +import kotlin.collections.HashMap + +typealias MyType = String +enum class MyEnum { FOO, BAR } +enum class MyOtherEnum { A, B, C } + +private fun buildMapOfMaps(): Map> { + val results = HashMap, MyOtherEnum>() + return results + .asSequence() + .groupingBy { it.key.first } + .fold( + { _, _ -> (EnumMap(MyEnum::class.java)) }, + { _, accumulator, element -> accumulator.also { map -> map[element.key.second] = element.value } } + ) +} diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt38179.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt38179.txt new file mode 100644 index 00000000000..81fb317a104 --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt38179.txt @@ -0,0 +1,48 @@ +package + +private fun buildMapOfMaps(): kotlin.collections.Map> + +public final enum class MyEnum : kotlin.Enum { + enum entry FOO + + enum entry BAR + + private constructor MyEnum() + public final override /*1*/ /*fake_override*/ val name: kotlin.String + public final override /*1*/ /*fake_override*/ val ordinal: kotlin.Int + protected final override /*1*/ /*fake_override*/ fun clone(): kotlin.Any + public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: MyEnum): kotlin.Int + public final override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + protected/*protected and package*/ final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun finalize(): kotlin.Unit + public final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun getDeclaringClass(): java.lang.Class! + public final override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String + + // Static members + public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): MyEnum + public final /*synthesized*/ fun values(): kotlin.Array +} + +public final enum class MyOtherEnum : kotlin.Enum { + enum entry A + + enum entry B + + enum entry C + + private constructor MyOtherEnum() + public final override /*1*/ /*fake_override*/ val name: kotlin.String + public final override /*1*/ /*fake_override*/ val ordinal: kotlin.Int + protected final override /*1*/ /*fake_override*/ fun clone(): kotlin.Any + public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: MyOtherEnum): kotlin.Int + public final override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + protected/*protected and package*/ final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun finalize(): kotlin.Unit + public final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun getDeclaringClass(): java.lang.Class! + public final override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String + + // Static members + public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): MyOtherEnum + public final /*synthesized*/ fun values(): kotlin.Array +} +public typealias MyType = kotlin.String diff --git a/compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.fir.kt new file mode 100644 index 00000000000..b34886365db --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.fir.kt @@ -0,0 +1,5 @@ +fun test(): Int { + val sets = (1..100).associateWith { (it..10 * it).mapTo(java.util.TreeSet()) { i -> i } } + val set = sets[50] ?: emptySet() + return set.size +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.kt b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.kt new file mode 100644 index 00000000000..060beb07851 --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.kt @@ -0,0 +1,5 @@ +fun test(): Int { + val sets = (1..100).associateWith { (it..10 * it).mapTo(java.util.TreeSet()) { i -> i } } + val set = sets[50] ?: emptySet() + return set.size +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.txt b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.txt new file mode 100644 index 00000000000..03e56797caa --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.txt @@ -0,0 +1,3 @@ +package + +public fun test(): kotlin.Int diff --git a/compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.fir.kt new file mode 100644 index 00000000000..78e83c40e2d --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.fir.kt @@ -0,0 +1,5 @@ +data class A(val x: Set = setOf()) { + fun with(x: Set? = null) { + A(x ?: this.x) + } +} diff --git a/compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.kt b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.kt new file mode 100644 index 00000000000..df47ad1a3db --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.kt @@ -0,0 +1,5 @@ +data class A(val x: Set<CLassNotFound> = setOf()) { + fun with(x: Set<CLassNotFound>? = null) { + A(x ?: this.x) + } +} diff --git a/compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.txt b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.txt new file mode 100644 index 00000000000..08ceed617d2 --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.txt @@ -0,0 +1,12 @@ +package + +public final data class A { + public constructor A(/*0*/ x: kotlin.collections.Set<[ERROR : CLassNotFound]> = ...) + public final val x: kotlin.collections.Set<[ERROR : CLassNotFound]> + public final operator /*synthesized*/ fun component1(): kotlin.collections.Set<[ERROR : CLassNotFound]> + public final /*synthesized*/ fun copy(/*0*/ x: kotlin.collections.Set<[ERROR : CLassNotFound]> = ...): A + public open override /*1*/ /*synthesized*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*synthesized*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String + public final fun with(/*0*/ x: kotlin.collections.Set<[ERROR : CLassNotFound]>? = ...): kotlin.Unit +} diff --git a/compiler/testData/diagnostics/testsWithStdLib/regression/kt37735.kt b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37735.kt new file mode 100644 index 00000000000..8305c2b62d7 --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37735.kt @@ -0,0 +1,24 @@ +// FIR_IDENTICAL +// !DIAGNOSTICS: -UNUSED_PARAMETER + +import java.net.URI + +fun WebClient.myPost(uri: URI, body: Any, extract: WebClient.ResponseSpec.() -> Mono): Mono = TODO() + +class RestClient(private val webClient: WebClient) { + fun post(outDto: OutDto): Mono = + webClient.myPost(URI("http:/localhost:8080"), outDto) { bodyToMono() } +} + +class Mono + +class WebClient { + fun post() {} + + interface ResponseSpec { + fun bodyToMono(): Mono + } +} + +class OutDto +class InDto \ No newline at end of file diff --git a/compiler/testData/diagnostics/testsWithStdLib/regression/kt37735.txt b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37735.txt new file mode 100644 index 00000000000..fde11fbd961 --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/regression/kt37735.txt @@ -0,0 +1,48 @@ +package + +public fun WebClient.myPost(/*0*/ uri: java.net.URI, /*1*/ body: kotlin.Any, /*2*/ extract: WebClient.ResponseSpec.() -> Mono): Mono + +public final class InDto { + public constructor InDto() + 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 final class Mono { + public constructor Mono() + 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 final class OutDto { + public constructor OutDto() + 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 final class RestClient { + public constructor RestClient(/*0*/ webClient: WebClient) + private final val webClient: WebClient + 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 final fun post(/*0*/ outDto: OutDto): Mono + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +public final class WebClient { + public constructor WebClient() + 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 final fun post(): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String + + public interface ResponseSpec { + public abstract fun bodyToMono(): Mono + 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 + } +} diff --git a/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestGenerated.java index 8db309a3585..3d157a7c5fb 100644 --- a/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestGenerated.java @@ -1886,6 +1886,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali runTest("compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.kt"); } + @TestMetadata("kt35105.kt") + public void testKt35105() throws Exception { + runTest("compiler/testData/diagnostics/tests/callableReference/kt35105.kt"); + } + @TestMetadata("kt35959.kt") public void testKt35959() throws Exception { runTest("compiler/testData/diagnostics/tests/callableReference/kt35959.kt"); @@ -10138,6 +10143,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali runTest("compiler/testData/diagnostics/tests/inference/kt36819.kt"); } + @TestMetadata("kt37853.kt") + public void testKt37853() throws Exception { + runTest("compiler/testData/diagnostics/tests/inference/kt37853.kt"); + } + @TestMetadata("kt6175.kt") public void testKt6175() throws Exception { runTest("compiler/testData/diagnostics/tests/inference/kt6175.kt"); @@ -13472,6 +13482,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali runTest("compiler/testData/diagnostics/tests/j+k/sam/inheritedStaticSam.kt"); } + @TestMetadata("kt37920.kt") + public void testKt37920() throws Exception { + runTest("compiler/testData/diagnostics/tests/j+k/sam/kt37920.kt"); + } + @TestMetadata("privateCandidatesWithWrongArguments.kt") public void testPrivateCandidatesWithWrongArguments() throws Exception { runTest("compiler/testData/diagnostics/tests/j+k/sam/privateCandidatesWithWrongArguments.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithStdLibGenerated.java b/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithStdLibGenerated.java index 9d860625b65..01deb1ccb29 100644 --- a/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithStdLibGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithStdLibGenerated.java @@ -1583,6 +1583,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/allowResultInReturnType_1_4.kt"); } + @TestMetadata("basicBuildListBuildMap.kt") + public void testBasicBuildListBuildMap() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/basicBuildListBuildMap.kt"); + } + @TestMetadata("callableReferences.kt") public void testCallableReferences() throws Exception { runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/callableReferences.kt"); @@ -1633,6 +1638,21 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/kt28658.kt"); } + @TestMetadata("kt36947.kt") + public void testKt36947() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/kt36947.kt"); + } + + @TestMetadata("kt37309.kt") + public void testKt37309() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/kt37309.kt"); + } + + @TestMetadata("kt38179.kt") + public void testKt38179() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/kt38179.kt"); + } + @TestMetadata("lambdaExpectedType.kt") public void testLambdaExpectedType() throws Exception { runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt"); @@ -3384,6 +3404,21 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt37554.kt"); } + @TestMetadata("kt37706.kt") + public void testKt37706() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.kt"); + } + + @TestMetadata("kt37727.kt") + public void testKt37727() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.kt"); + } + + @TestMetadata("kt37735.kt") + public void testKt37735() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt37735.kt"); + } + @TestMetadata("kt9820_javaFunctionTypeInheritor.kt") public void testKt9820_javaFunctionTypeInheritor() throws Exception { runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java b/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java index 749d2511aeb..bc73b3d4be4 100644 --- a/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java @@ -1583,6 +1583,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/allowResultInReturnType_1_4.kt"); } + @TestMetadata("basicBuildListBuildMap.kt") + public void testBasicBuildListBuildMap() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/basicBuildListBuildMap.kt"); + } + @TestMetadata("callableReferences.kt") public void testCallableReferences() throws Exception { runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/callableReferences.kt"); @@ -1633,6 +1638,21 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/kt28658.kt"); } + @TestMetadata("kt36947.kt") + public void testKt36947() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/kt36947.kt"); + } + + @TestMetadata("kt37309.kt") + public void testKt37309() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/kt37309.kt"); + } + + @TestMetadata("kt38179.kt") + public void testKt38179() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/kt38179.kt"); + } + @TestMetadata("lambdaExpectedType.kt") public void testLambdaExpectedType() throws Exception { runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt"); @@ -3384,6 +3404,21 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt37554.kt"); } + @TestMetadata("kt37706.kt") + public void testKt37706() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt37706.kt"); + } + + @TestMetadata("kt37727.kt") + public void testKt37727() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt37727.kt"); + } + + @TestMetadata("kt37735.kt") + public void testKt37735() throws Exception { + runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt37735.kt"); + } + @TestMetadata("kt9820_javaFunctionTypeInheritor.kt") public void testKt9820_javaFunctionTypeInheritor() throws Exception { runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt9820_javaFunctionTypeInheritor.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsUsingJavacTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsUsingJavacTestGenerated.java index 1aca3b95797..be3d0900cea 100644 --- a/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsUsingJavacTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsUsingJavacTestGenerated.java @@ -1881,6 +1881,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing runTest("compiler/testData/diagnostics/tests/callableReference/kt34314_lambda.kt"); } + @TestMetadata("kt35105.kt") + public void testKt35105() throws Exception { + runTest("compiler/testData/diagnostics/tests/callableReference/kt35105.kt"); + } + @TestMetadata("kt35959.kt") public void testKt35959() throws Exception { runTest("compiler/testData/diagnostics/tests/callableReference/kt35959.kt"); @@ -10133,6 +10138,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing runTest("compiler/testData/diagnostics/tests/inference/kt36819.kt"); } + @TestMetadata("kt37853.kt") + public void testKt37853() throws Exception { + runTest("compiler/testData/diagnostics/tests/inference/kt37853.kt"); + } + @TestMetadata("kt6175.kt") public void testKt6175() throws Exception { runTest("compiler/testData/diagnostics/tests/inference/kt6175.kt"); @@ -13467,6 +13477,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing runTest("compiler/testData/diagnostics/tests/j+k/sam/inheritedStaticSam.kt"); } + @TestMetadata("kt37920.kt") + public void testKt37920() throws Exception { + runTest("compiler/testData/diagnostics/tests/j+k/sam/kt37920.kt"); + } + @TestMetadata("privateCandidatesWithWrongArguments.kt") public void testPrivateCandidatesWithWrongArguments() throws Exception { runTest("compiler/testData/diagnostics/tests/j+k/sam/privateCandidatesWithWrongArguments.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java index a9783875771..99d6a2dd12f 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java @@ -13296,6 +13296,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inference/coerctionToUnitForLastExpressionWithStarProjection.kt"); } + @TestMetadata("earlyReturnInsideCrossinlineLambda.kt") + public void testEarlyReturnInsideCrossinlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inference/earlyReturnInsideCrossinlineLambda.kt"); + } + @TestMetadata("integerLiteralTypeInLamdaReturnType.kt") public void testIntegerLiteralTypeInLamdaReturnType() throws Exception { runTest("compiler/testData/codegen/box/inference/integerLiteralTypeInLamdaReturnType.kt"); @@ -19702,6 +19707,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/operatorConventions/overloadedSet.kt"); } + @TestMetadata("plusAssignWithComplexRHS.kt") + public void testPlusAssignWithComplexRHS() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt"); + } + @TestMetadata("plusExplicit.kt") public void testPlusExplicit() throws Exception { runTest("compiler/testData/codegen/box/operatorConventions/plusExplicit.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index 80f10fa7d4f..031cb6381ff 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -13296,6 +13296,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inference/coerctionToUnitForLastExpressionWithStarProjection.kt"); } + @TestMetadata("earlyReturnInsideCrossinlineLambda.kt") + public void testEarlyReturnInsideCrossinlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inference/earlyReturnInsideCrossinlineLambda.kt"); + } + @TestMetadata("integerLiteralTypeInLamdaReturnType.kt") public void testIntegerLiteralTypeInLamdaReturnType() throws Exception { runTest("compiler/testData/codegen/box/inference/integerLiteralTypeInLamdaReturnType.kt"); @@ -19702,6 +19707,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/operatorConventions/overloadedSet.kt"); } + @TestMetadata("plusAssignWithComplexRHS.kt") + public void testPlusAssignWithComplexRHS() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt"); + } + @TestMetadata("plusExplicit.kt") public void testPlusExplicit() throws Exception { runTest("compiler/testData/codegen/box/operatorConventions/plusExplicit.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java index 1aeceadb1bb..416877185c1 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java @@ -12081,6 +12081,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inference/coerctionToUnitForLastExpressionWithStarProjection.kt"); } + @TestMetadata("earlyReturnInsideCrossinlineLambda.kt") + public void testEarlyReturnInsideCrossinlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inference/earlyReturnInsideCrossinlineLambda.kt"); + } + @TestMetadata("integerLiteralTypeInLamdaReturnType.kt") public void testIntegerLiteralTypeInLamdaReturnType() throws Exception { runTest("compiler/testData/codegen/box/inference/integerLiteralTypeInLamdaReturnType.kt"); @@ -18121,6 +18126,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/operatorConventions/overloadedSet.kt"); } + @TestMetadata("plusAssignWithComplexRHS.kt") + public void testPlusAssignWithComplexRHS() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt"); + } + @TestMetadata("plusExplicit.kt") public void testPlusExplicit() throws Exception { runTest("compiler/testData/codegen/box/operatorConventions/plusExplicit.kt"); diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java index 558982e808c..c615a1e100a 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java @@ -10376,6 +10376,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inference/coerctionToUnitForLastExpressionWithStarProjection.kt"); } + @TestMetadata("earlyReturnInsideCrossinlineLambda.kt") + public void testEarlyReturnInsideCrossinlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inference/earlyReturnInsideCrossinlineLambda.kt"); + } + @TestMetadata("integerLiteralTypeInLamdaReturnType.kt") public void testIntegerLiteralTypeInLamdaReturnType() throws Exception { runTest("compiler/testData/codegen/box/inference/integerLiteralTypeInLamdaReturnType.kt"); @@ -14957,6 +14962,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/operatorConventions/overloadedSet.kt"); } + @TestMetadata("plusAssignWithComplexRHS.kt") + public void testPlusAssignWithComplexRHS() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt"); + } + @TestMetadata("plusExplicit.kt") public void testPlusExplicit() throws Exception { runTest("compiler/testData/codegen/box/operatorConventions/plusExplicit.kt"); diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java index b8aff9aaa99..59c58cda63d 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java @@ -10441,6 +10441,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inference/coerctionToUnitForLastExpressionWithStarProjection.kt"); } + @TestMetadata("earlyReturnInsideCrossinlineLambda.kt") + public void testEarlyReturnInsideCrossinlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inference/earlyReturnInsideCrossinlineLambda.kt"); + } + @TestMetadata("integerLiteralTypeInLamdaReturnType.kt") public void testIntegerLiteralTypeInLamdaReturnType() throws Exception { runTest("compiler/testData/codegen/box/inference/integerLiteralTypeInLamdaReturnType.kt"); @@ -15062,6 +15067,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/operatorConventions/overloadedSet.kt"); } + @TestMetadata("plusAssignWithComplexRHS.kt") + public void testPlusAssignWithComplexRHS() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt"); + } + @TestMetadata("plusExplicit.kt") public void testPlusExplicit() throws Exception { runTest("compiler/testData/codegen/box/operatorConventions/plusExplicit.kt");