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
This commit is contained in:
Mikhail Zarechenskiy
2020-04-20 00:18:16 +03:00
parent 57597f5900
commit befa1e114c
36 changed files with 559 additions and 0 deletions
@@ -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");
@@ -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");
@@ -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");
@@ -0,0 +1,15 @@
inline fun <T> runReadAction(crossinline runnable: () -> T): T = runnable()
class Foo {
fun <K> infer(): K = "OK" as K
}
fun bar(): Int? = 42
fun box(): String {
return runReadAction {
bar() ?: return@runReadAction "Failed"
val foo = Foo()
foo.infer()
}
}
@@ -0,0 +1,10 @@
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
// IGNORE_BACKEND_FIR: JVM_IR
var map: Map<Any, Set<Any>> = emptyMap()
fun box(): String {
map += "OK" to emptySet()
return map.keys.first().toString()
}
@@ -0,0 +1,21 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.reflect.KClass
import kotlin.reflect.KMutableProperty1
class Testclass {
var entry: String = ""
fun <T : Any> distinct(distinctField: KMutableProperty1<out Any, T>, entryClazz: KClass<T>, vararg filter: String) {
return
}
inline fun <reified T : Any> distinct(distinctField: KMutableProperty1<out Any, T>, vararg filter: String) {
return distinct(distinctField, T::class, *filter)
}
fun test() {
distinct(Testclass::entry, "filter")
}
}
@@ -0,0 +1,12 @@
package
public final class Testclass {
public constructor Testclass()
public final var entry: kotlin.String
public final inline fun </*0*/ reified T : kotlin.Any> distinct(/*0*/ distinctField: kotlin.reflect.KMutableProperty1<out kotlin.Any, T>, /*1*/ vararg filter: kotlin.String /*kotlin.Array<out kotlin.String>*/): kotlin.Unit
public final fun </*0*/ T : kotlin.Any> distinct(/*0*/ distinctField: kotlin.reflect.KMutableProperty1<out kotlin.Any, T>, /*1*/ entryClazz: kotlin.reflect.KClass<T>, /*2*/ vararg filter: kotlin.String /*kotlin.Array<out kotlin.String>*/): 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
}
@@ -0,0 +1,13 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
fun test() {
val bug = storing { "" }.default(null)
}
class Bar<out T>
fun <T> Bar<T>.default(defaultValue: T): Bar<T> = TODO()
fun <T> Bar<T>.default(defaultValue: () -> T): Bar<T> = TODO()
fun <T> storing(transform: String.() -> T): Bar<T> = TODO()
@@ -0,0 +1,13 @@
package
public fun </*0*/ T> storing(/*0*/ transform: kotlin.String.() -> T): Bar<T>
public fun test(): kotlin.Unit
public fun </*0*/ T> Bar<T>.default(/*0*/ defaultValue: () -> T): Bar<T>
public fun </*0*/ T> Bar<T>.default(/*0*/ defaultValue: T): Bar<T>
public final class Bar</*0*/ out T> {
public constructor Bar</*0*/ out 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
}
+28
View File
@@ -0,0 +1,28 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_VARIABLE
// FILE: A.java
public class A {
public static <T, E extends Throwable> T compute(ThrowableComputable<T, E> action) throws E {
return (T) action;
}
}
// FILE: ThrowableComputable.java
public interface ThrowableComputable<T, E extends Throwable> {
T compute() throws E;
}
// FILE: test.kt
fun main() {
val headers = A.compute(
ThrowableComputable {
getCollection()
}
)
}
fun getCollection(): Collection<Int> = TODO()
+21
View File
@@ -0,0 +1,21 @@
package
public fun getCollection(): kotlin.collections.Collection<kotlin.Int>
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 </*0*/ T : kotlin.Any!, /*1*/ E : kotlin.Throwable!> compute(/*0*/ action: ThrowableComputable<T!, E!>!): T!
}
public interface ThrowableComputable</*0*/ T : kotlin.Any!, /*1*/ E : kotlin.Throwable!> {
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
}
@@ -0,0 +1,13 @@
// !USE_EXPERIMENTAL: kotlin.RequiresOptIn
@OptIn(ExperimentalStdlibApi::class)
fun test1(): List<Int> = buildList {
add(1)
reverse()
add(4)
}
@OptIn(ExperimentalStdlibApi::class)
fun test2(): Map<Int, Int> = buildMap {
put(0, 0)
}
@@ -0,0 +1,4 @@
package
@kotlin.OptIn(markerClass = {kotlin.ExperimentalStdlibApi::class}) public fun test1(): kotlin.collections.List<kotlin.Int>
@kotlin.OptIn(markerClass = {kotlin.ExperimentalStdlibApi::class}) public fun test2(): kotlin.collections.Map<kotlin.Int, kotlin.Int>
@@ -0,0 +1,6 @@
val foo = iterator {
yield(0)
val nullable: String? = null
nullable<!UNSAFE_CALL!>.<!>length
nullable<!UNSAFE_CALL!>.<!>get(2)
}
@@ -0,0 +1,3 @@
package
public val foo: kotlin.collections.Iterator<kotlin.Int>
@@ -0,0 +1,24 @@
// !USE_EXPERIMENTAL: kotlin.RequiresOptIn
// !DIAGNOSTICS: -UNUSED_VARIABLE
import kotlin.experimental.ExperimentalTypeInference
@OptIn(ExperimentalTypeInference::class)
fun <E> myBuildList(@BuilderInference builderAction: MutableList<E>.() -> Unit) {
ArrayList<E>().builderAction()
}
@OptIn(ExperimentalStdlibApi::class)
fun main() {
val newList1 = myBuildList {
addAll(
listOf(1).map { Foo(<!NULL_FOR_NONNULL_TYPE!>null<!>) }
)
}
val newList2 = buildList {
addAll(listOf(1,2,3).map{ Foo(<!NULL_FOR_NONNULL_TYPE!>null<!>) })
}
}
class Foo(val notNullProp: String)
@@ -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 </*0*/ E> myBuildList(/*0*/ @kotlin.BuilderInference builderAction: kotlin.collections.MutableList<E>.() -> 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
}
@@ -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<MyType, Map<MyEnum, MyOtherEnum>> {
val results = HashMap<Pair<MyType, MyEnum>, MyOtherEnum>()
return results
.asSequence()
.groupingBy { it.key.first }
.fold(
{ _, _ -> (EnumMap(MyEnum::class.java)) },
{ _, accumulator, element -> accumulator.also { map -> map[element.key.second] = element.value } }
)
}
@@ -0,0 +1,48 @@
package
private fun buildMapOfMaps(): kotlin.collections.Map<MyType /* = kotlin.String */, kotlin.collections.Map<MyEnum, MyOtherEnum>>
public final enum class MyEnum : kotlin.Enum<MyEnum> {
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<MyEnum!>!
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<MyEnum>
}
public final enum class MyOtherEnum : kotlin.Enum<MyOtherEnum> {
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<MyOtherEnum!>!
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<MyOtherEnum>
}
public typealias MyType = kotlin.String
@@ -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.<!UNRESOLVED_REFERENCE!>size<!>
}
@@ -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
}
@@ -0,0 +1,3 @@
package
public fun test(): kotlin.Int
@@ -0,0 +1,5 @@
data class A(val x: Set<CLassNotFound> = setOf()) {
fun with(x: Set<CLassNotFound>? = null) {
A(x ?: this.x)
}
}
@@ -0,0 +1,5 @@
data class A(val x: Set<<!UNRESOLVED_REFERENCE!>CLassNotFound<!>> = setOf()) {
fun with(x: Set<<!UNRESOLVED_REFERENCE!>CLassNotFound<!>>? = null) {
A(<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>x<!> ?: this.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>x<!>)
}
}
@@ -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
}
@@ -0,0 +1,24 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
import java.net.URI
fun <T> WebClient.myPost(uri: URI, body: Any, extract: WebClient.ResponseSpec.() -> Mono<T>): Mono<T> = TODO()
class RestClient(private val webClient: WebClient) {
fun post(outDto: OutDto): Mono<InDto> =
webClient.myPost(URI("http:/localhost:8080"), outDto) { bodyToMono() }
}
class Mono<T>
class WebClient {
fun post() {}
interface ResponseSpec {
fun <T> bodyToMono(): Mono<T>
}
}
class OutDto
class InDto
@@ -0,0 +1,48 @@
package
public fun </*0*/ T> WebClient.myPost(/*0*/ uri: java.net.URI, /*1*/ body: kotlin.Any, /*2*/ extract: WebClient.ResponseSpec.() -> Mono<T>): Mono<T>
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</*0*/ T> {
public constructor Mono</*0*/ 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
}
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<InDto>
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 </*0*/ T> bodyToMono(): Mono<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
}
}
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");