Add tests for obsolete issues
#KT-38804 Obsolete #KT-38801 Obsolete #KT-38835 Obsolete #KT-38737 Obsolete #KT-38664 Obsolete #KT-38549 Obsolete #KT-38766 Obsolete #KT-38714 Obsolete
This commit is contained in:
+15
@@ -6211,6 +6211,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38714.kt")
|
||||
public void testKt38714() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/kt38714.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedProperty.kt")
|
||||
public void testLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/localDelegatedProperty.kt");
|
||||
@@ -11922,6 +11927,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt37650.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38549.kt")
|
||||
public void testKt38549() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt38549.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38691.kt")
|
||||
public void testKt38691() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt38691.kt");
|
||||
@@ -21650,6 +21660,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartCastOnIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastOnLastExpressionOfLambdaAfterNothing.kt")
|
||||
public void testSmartCastOnLastExpressionOfLambdaAfterNothing() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartCastOnLastExpressionOfLambdaAfterNothing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastOnWhen.kt")
|
||||
public void testSmartCastOnWhen() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartCastOnWhen.kt");
|
||||
|
||||
+15
@@ -2058,6 +2058,11 @@ public class FirOldFrontendDiagnosticsTestWithStdlibGenerated extends AbstractFi
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38766.kt")
|
||||
public void testKt38766() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38766.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedLambdaInferenceWithListMap.kt")
|
||||
public void testNestedLambdaInferenceWithListMap() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedLambdaInferenceWithListMap.kt");
|
||||
@@ -2925,6 +2930,16 @@ public class FirOldFrontendDiagnosticsTestWithStdlibGenerated extends AbstractFi
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt38143.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38737.kt")
|
||||
public void testKt38737() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt38737.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38801.kt")
|
||||
public void testKt38801() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt38801.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4975.kt")
|
||||
public void testKt4975() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt4975.kt");
|
||||
|
||||
Generated
+10
@@ -12504,6 +12504,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/inference/kt36446.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38664.kt")
|
||||
public void testKt38664() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt38664.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt39824.kt")
|
||||
public void testKt39824() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt39824.kt");
|
||||
@@ -30711,6 +30716,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/vararg/notInLastPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("referenceToContainsFromVarargParameter.kt")
|
||||
public void testReferenceToContainsFromVarargParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/referenceToContainsFromVarargParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("singleAssignmentToVarargsInFunction.kt")
|
||||
public void testSingleAssignmentToVarargsInFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/singleAssignmentToVarargsInFunction.kt");
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
interface C<A : Any, B : Any> {
|
||||
fun foo(a: A): B
|
||||
|
||||
companion object {
|
||||
inline fun <reified A : Any, reified B : Any> inlinefun(crossinline fooParam: (A) -> B): C<A, B> {
|
||||
return object : C<A, B> {
|
||||
override fun foo(a: A) = fooParam(a)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
data class A(val s: String) {
|
||||
companion object : C<A, String> by C.inlinefun(
|
||||
fooParam = { it.s }
|
||||
)
|
||||
}
|
||||
|
||||
class OtherB {
|
||||
var a: String? = null
|
||||
}
|
||||
|
||||
data class B(val a: A?) {
|
||||
companion object : C<B, OtherB> by C.inlinefun(
|
||||
fooParam = {
|
||||
OtherB().apply {
|
||||
a = it.a?.let(A::foo)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val b = B(A("OK"))
|
||||
return B.foo(b).a ?: "fail"
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(l: List<String>, vararg values: Any): Boolean =
|
||||
l.any(values::contains)
|
||||
|
||||
fun box(): String {
|
||||
if (!foo(listOf("OK"), "OK")) return "fail 1"
|
||||
if (foo(listOf("none", "OK"))) return "fail 2"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
// WITH_RUNTIME
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
abstract class MainActivity : DIAware1() {
|
||||
val bar: Bar by instance1()
|
||||
}
|
||||
|
||||
class Bar
|
||||
|
||||
open class DIAware1 {
|
||||
inline fun <reified T : Any> DIAware1.instance1(tag: Any? = null): DIProperty<T> = TODO()
|
||||
}
|
||||
|
||||
class DIProperty<out V> : LazyDelegate<V> {
|
||||
override fun provideDelegate(receiver: Any?, prop: KProperty<Any?>): Lazy<V> = TODO()
|
||||
}
|
||||
|
||||
interface LazyDelegate<out V> {
|
||||
operator fun provideDelegate(receiver: Any?, prop: KProperty<Any?>): Lazy<V>
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
// WITH_RUNTIME
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
abstract class MainActivity : DIAware1() {
|
||||
val bar: Bar by <!DEBUG_INFO_LEAKING_THIS!>instance1<!>()
|
||||
}
|
||||
|
||||
class Bar
|
||||
|
||||
open class DIAware1 {
|
||||
inline fun <reified T : Any> DIAware1.instance1(tag: Any? = null): DIProperty<T> = TODO()
|
||||
}
|
||||
|
||||
class DIProperty<out V> : LazyDelegate<V> {
|
||||
override fun provideDelegate(receiver: Any?, prop: KProperty<Any?>): Lazy<V> = TODO()
|
||||
}
|
||||
|
||||
interface LazyDelegate<out V> {
|
||||
operator fun provideDelegate(receiver: Any?, prop: KProperty<Any?>): Lazy<V>
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
package
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
public open class DIAware1 {
|
||||
public constructor DIAware1()
|
||||
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 inline fun </*0*/ reified T : kotlin.Any> DIAware1.instance1(/*0*/ tag: kotlin.Any? = ...): DIProperty<T>
|
||||
}
|
||||
|
||||
public final class DIProperty</*0*/ out V> : LazyDelegate<V> {
|
||||
public constructor DIProperty</*0*/ out V>()
|
||||
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*/ fun provideDelegate(/*0*/ receiver: kotlin.Any?, /*1*/ prop: kotlin.reflect.KProperty<kotlin.Any?>): kotlin.Lazy<V>
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface LazyDelegate</*0*/ out V> {
|
||||
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 abstract operator fun provideDelegate(/*0*/ receiver: kotlin.Any?, /*1*/ prop: kotlin.reflect.KProperty<kotlin.Any?>): kotlin.Lazy<V>
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public abstract class MainActivity : DIAware1 {
|
||||
public constructor MainActivity()
|
||||
public final val bar: 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
|
||||
public final override /*1*/ inline /*fake_override*/ fun </*0*/ reified T : kotlin.Any> DIAware1.instance1(/*0*/ tag: kotlin.Any? = ...): DIProperty<T>
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun test(b: TestRepo) {
|
||||
coEvery1 { b.save(any()) }
|
||||
}
|
||||
|
||||
fun <T> coEvery1(stubBlock: suspend MockKMatcherScope.() -> T) {}
|
||||
|
||||
class MockKMatcherScope {
|
||||
inline fun <reified T : Any> any(): T = TODO()
|
||||
}
|
||||
|
||||
class TestRepo : CrudRepository<Int, String>
|
||||
|
||||
interface CrudRepository<T, K> {
|
||||
fun <S : T?> save(entity: S): S = TODO()
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package
|
||||
|
||||
public fun </*0*/ T> coEvery1(/*0*/ stubBlock: suspend MockKMatcherScope.() -> T): kotlin.Unit
|
||||
public fun test(/*0*/ b: TestRepo): kotlin.Unit
|
||||
|
||||
public interface CrudRepository</*0*/ T, /*1*/ K> {
|
||||
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 fun </*0*/ S : T?> save(/*0*/ entity: S): S
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class MockKMatcherScope {
|
||||
public constructor MockKMatcherScope()
|
||||
public final inline fun </*0*/ reified T : kotlin.Any> any(): 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 TestRepo : CrudRepository<kotlin.Int, kotlin.String> {
|
||||
public constructor TestRepo()
|
||||
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 </*0*/ S : kotlin.Int?> save(/*0*/ entity: S): S
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
class Inv<T>
|
||||
|
||||
fun <T> foo(f: () -> T): Inv<T> = TODO()
|
||||
|
||||
fun myExit(): Nothing = TODO()
|
||||
|
||||
fun test(x: String?): Inv<String> {
|
||||
return foo {
|
||||
if (x == null) myExit()
|
||||
x
|
||||
}
|
||||
}
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
class Inv<T>
|
||||
|
||||
fun <T> foo(f: () -> T): Inv<T> = TODO()
|
||||
|
||||
fun myExit(): Nothing = TODO()
|
||||
|
||||
fun test(x: String?): Inv<String> {
|
||||
return foo {
|
||||
if (x == null) myExit()
|
||||
<!DEBUG_INFO_SMARTCAST!>x<!>
|
||||
}
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
package
|
||||
|
||||
public fun </*0*/ T> foo(/*0*/ f: () -> T): Inv<T>
|
||||
public fun myExit(): kotlin.Nothing
|
||||
public fun test(/*0*/ x: kotlin.String?): Inv<kotlin.String>
|
||||
|
||||
public final class Inv</*0*/ T> {
|
||||
public constructor Inv</*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
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
// FIR_IDENTICAL
|
||||
// !USE_EXPERIMENTAL: kotlin.RequiresOptIn
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
import kotlin.experimental.ExperimentalTypeInference
|
||||
|
||||
inline fun <reified T, R> emptyFlow(crossinline transform: suspend (Array<T>) -> R): Flow1<R> =
|
||||
flow1 { emit(transform(emptyArray())) }
|
||||
|
||||
inline fun <reified T, R> emptyFlow(crossinline transform: (Array<T>) -> R): Flow1<R> =
|
||||
flowOf1(transform(emptyArray()))
|
||||
|
||||
fun <T> flowOf1(value: T): Flow1<T> = TODO()
|
||||
|
||||
@OptIn(ExperimentalTypeInference::class)
|
||||
fun <T> flow1(@BuilderInference block: suspend FlowCollector1<T>.() -> Unit): Flow1<T> = TODO()
|
||||
|
||||
interface FlowCollector1<in T> {
|
||||
suspend fun emit(value: T)
|
||||
}
|
||||
|
||||
interface Flow1<out T>
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package
|
||||
|
||||
public inline fun </*0*/ reified T, /*1*/ R> emptyFlow(/*0*/ crossinline transform: (kotlin.Array<T>) -> R): Flow1<R>
|
||||
public inline fun </*0*/ reified T, /*1*/ R> emptyFlow(/*0*/ crossinline transform: suspend (kotlin.Array<T>) -> R): Flow1<R>
|
||||
@kotlin.OptIn(markerClass = {kotlin.experimental.ExperimentalTypeInference::class}) public fun </*0*/ T> flow1(/*0*/ @kotlin.BuilderInference block: suspend FlowCollector1<T>.() -> kotlin.Unit): Flow1<T>
|
||||
public fun </*0*/ T> flowOf1(/*0*/ value: T): Flow1<T>
|
||||
|
||||
public interface Flow1</*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
|
||||
}
|
||||
|
||||
public interface FlowCollector1</*0*/ in T> {
|
||||
public abstract suspend fun emit(/*0*/ value: T): 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 open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
private const val dateRangeStart: String = "2020-01-01"
|
||||
private const val dateRangeEnd: String = "2020-05-01"
|
||||
|
||||
private fun String?.toIconList(): List<String> = when (this) {
|
||||
null -> listOf("DATE_IS_NULL")
|
||||
<!INAPPLICABLE_CANDIDATE!>in<!> dateRangeStart..dateRangeEnd -> emptyList()
|
||||
else -> listOf("DATE_IS_OUT_OF_RANGE")
|
||||
}
|
||||
|
||||
fun main() {
|
||||
println("2019-12-31".toIconList())
|
||||
println(null.toIconList())
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
private const val dateRangeStart: String = "2020-01-01"
|
||||
private const val dateRangeEnd: String = "2020-05-01"
|
||||
|
||||
private fun String?.toIconList(): List<String> = when (this) {
|
||||
null -> listOf("DATE_IS_NULL")
|
||||
in dateRangeStart..dateRangeEnd -> emptyList()
|
||||
else -> listOf("DATE_IS_OUT_OF_RANGE")
|
||||
}
|
||||
|
||||
fun main() {
|
||||
println("2019-12-31".toIconList())
|
||||
println(null.toIconList())
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package
|
||||
|
||||
private const val dateRangeEnd: kotlin.String = "2020-05-01"
|
||||
private const val dateRangeStart: kotlin.String = "2020-01-01"
|
||||
public fun main(): kotlin.Unit
|
||||
private fun kotlin.String?.toIconList(): kotlin.collections.List<kotlin.String>
|
||||
@@ -0,0 +1,17 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
open class A {
|
||||
open val servers: List<C>
|
||||
get() = findAndExpand({ "hi" })
|
||||
.mapNotNull { B.foo(it) }
|
||||
|
||||
fun findAndExpand(vararg path: () -> String): List<String> = TODO()
|
||||
}
|
||||
|
||||
object B {
|
||||
inline fun <reified T : C> foo(bar: String?): T? = TODO()
|
||||
}
|
||||
|
||||
open class C
|
||||
class D : C()
|
||||
@@ -0,0 +1,32 @@
|
||||
package
|
||||
|
||||
public open class A {
|
||||
public constructor A()
|
||||
public open val servers: kotlin.collections.List<C>
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun findAndExpand(/*0*/ vararg path: () -> kotlin.String /*kotlin.Array<out () -> kotlin.String>*/): kotlin.collections.List<kotlin.String>
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public object B {
|
||||
private constructor B()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final inline fun </*0*/ reified T : C> foo(/*0*/ bar: kotlin.String?): T?
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public open class C {
|
||||
public constructor C()
|
||||
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 D : C {
|
||||
public constructor D()
|
||||
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
|
||||
}
|
||||
@@ -6218,6 +6218,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
runTest("compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38714.kt")
|
||||
public void testKt38714() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/kt38714.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedProperty.kt")
|
||||
public void testLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/localDelegatedProperty.kt");
|
||||
@@ -11929,6 +11934,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt37650.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38549.kt")
|
||||
public void testKt38549() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt38549.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38691.kt")
|
||||
public void testKt38691() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt38691.kt");
|
||||
@@ -21727,6 +21737,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartCastOnIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastOnLastExpressionOfLambdaAfterNothing.kt")
|
||||
public void testSmartCastOnLastExpressionOfLambdaAfterNothing() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartCastOnLastExpressionOfLambdaAfterNothing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastOnWhen.kt")
|
||||
public void testSmartCastOnWhen() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartCastOnWhen.kt");
|
||||
|
||||
+15
@@ -2098,6 +2098,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38766.kt")
|
||||
public void testKt38766() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38766.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedLambdaInferenceWithListMap.kt")
|
||||
public void testNestedLambdaInferenceWithListMap() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedLambdaInferenceWithListMap.kt");
|
||||
@@ -3075,6 +3080,16 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt38143.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38737.kt")
|
||||
public void testKt38737() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt38737.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38801.kt")
|
||||
public void testKt38801() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt38801.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4975.kt")
|
||||
public void testKt4975() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt4975.kt");
|
||||
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
+15
@@ -2098,6 +2098,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38766.kt")
|
||||
public void testKt38766() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38766.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedLambdaInferenceWithListMap.kt")
|
||||
public void testNestedLambdaInferenceWithListMap() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedLambdaInferenceWithListMap.kt");
|
||||
@@ -3075,6 +3080,16 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt38143.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38737.kt")
|
||||
public void testKt38737() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt38737.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38801.kt")
|
||||
public void testKt38801() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt38801.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4975.kt")
|
||||
public void testKt4975() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt4975.kt");
|
||||
|
||||
Generated
+15
@@ -6213,6 +6213,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38714.kt")
|
||||
public void testKt38714() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/kt38714.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedProperty.kt")
|
||||
public void testLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/localDelegatedProperty.kt");
|
||||
@@ -11924,6 +11929,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt37650.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38549.kt")
|
||||
public void testKt38549() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt38549.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38691.kt")
|
||||
public void testKt38691() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt38691.kt");
|
||||
@@ -21652,6 +21662,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartCastOnIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastOnLastExpressionOfLambdaAfterNothing.kt")
|
||||
public void testSmartCastOnLastExpressionOfLambdaAfterNothing() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartCastOnLastExpressionOfLambdaAfterNothing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastOnWhen.kt")
|
||||
public void testSmartCastOnWhen() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartCastOnWhen.kt");
|
||||
|
||||
+10
@@ -13729,6 +13729,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/inference/kt36446.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38664.kt")
|
||||
public void testKt38664() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt38664.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt39824.kt")
|
||||
public void testKt39824() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt39824.kt");
|
||||
@@ -32307,6 +32312,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/vararg/notInLastPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("referenceToContainsFromVarargParameter.kt")
|
||||
public void testReferenceToContainsFromVarargParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/referenceToContainsFromVarargParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("singleAssignmentToVarargsInFunction.kt")
|
||||
public void testSingleAssignmentToVarargsInFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/singleAssignmentToVarargsInFunction.kt");
|
||||
|
||||
+10
@@ -13729,6 +13729,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/inference/kt36446.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38664.kt")
|
||||
public void testKt38664() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt38664.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt39824.kt")
|
||||
public void testKt39824() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt39824.kt");
|
||||
@@ -29941,6 +29946,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/vararg/notInLastPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("referenceToContainsFromVarargParameter.kt")
|
||||
public void testReferenceToContainsFromVarargParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/referenceToContainsFromVarargParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("singleAssignmentToVarargsInFunction.kt")
|
||||
public void testSingleAssignmentToVarargsInFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/singleAssignmentToVarargsInFunction.kt");
|
||||
|
||||
+10
@@ -12504,6 +12504,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/inference/kt36446.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38664.kt")
|
||||
public void testKt38664() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt38664.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt39824.kt")
|
||||
public void testKt39824() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt39824.kt");
|
||||
@@ -30711,6 +30716,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/vararg/notInLastPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("referenceToContainsFromVarargParameter.kt")
|
||||
public void testReferenceToContainsFromVarargParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/referenceToContainsFromVarargParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("singleAssignmentToVarargsInFunction.kt")
|
||||
public void testSingleAssignmentToVarargsInFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/singleAssignmentToVarargsInFunction.kt");
|
||||
|
||||
Generated
+10
@@ -10764,6 +10764,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/inference/kt36446.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38664.kt")
|
||||
public void testKt38664() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt38664.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt39824.kt")
|
||||
public void testKt39824() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt39824.kt");
|
||||
@@ -25007,6 +25012,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/vararg/kt796_797.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("referenceToContainsFromVarargParameter.kt")
|
||||
public void testReferenceToContainsFromVarargParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/referenceToContainsFromVarargParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("singleAssignmentToVarargsInFunction.kt")
|
||||
public void testSingleAssignmentToVarargsInFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/singleAssignmentToVarargsInFunction.kt");
|
||||
|
||||
Generated
+10
@@ -10764,6 +10764,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inference/kt36446.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38664.kt")
|
||||
public void testKt38664() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt38664.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt39824.kt")
|
||||
public void testKt39824() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt39824.kt");
|
||||
@@ -25007,6 +25012,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/vararg/kt796_797.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("referenceToContainsFromVarargParameter.kt")
|
||||
public void testReferenceToContainsFromVarargParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/referenceToContainsFromVarargParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("singleAssignmentToVarargsInFunction.kt")
|
||||
public void testSingleAssignmentToVarargsInFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/singleAssignmentToVarargsInFunction.kt");
|
||||
|
||||
+10
@@ -10829,6 +10829,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inference/kt36446.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38664.kt")
|
||||
public void testKt38664() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt38664.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt39824.kt")
|
||||
public void testKt39824() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/kt39824.kt");
|
||||
@@ -25022,6 +25027,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/vararg/kt796_797.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("referenceToContainsFromVarargParameter.kt")
|
||||
public void testReferenceToContainsFromVarargParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/referenceToContainsFromVarargParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("singleAssignmentToVarargsInFunction.kt")
|
||||
public void testSingleAssignmentToVarargsInFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/vararg/singleAssignmentToVarargsInFunction.kt");
|
||||
|
||||
Reference in New Issue
Block a user