[FIR, Tests] Add box tests to verify that disappeared DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE leads to executable code
#KT-59903 Merge-request: KT-MR-13423 Merged-by: Evgeniy Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
aff5b91da3
commit
9cef8a2133
+30
@@ -16527,6 +16527,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -16587,6 +16593,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -16647,6 +16659,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -16658,6 +16676,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16772,6 +16796,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inClassDeclaration.kt")
|
||||
public void testInClassDeclaration() throws Exception {
|
||||
|
||||
+30
@@ -16527,6 +16527,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -16587,6 +16593,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -16647,6 +16659,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -16658,6 +16676,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16772,6 +16796,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inClassDeclaration.kt")
|
||||
public void testInClassDeclaration() throws Exception {
|
||||
|
||||
+30
@@ -16468,6 +16468,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -16528,6 +16534,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -16588,6 +16600,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -16599,6 +16617,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16713,6 +16737,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inClassDeclaration.kt")
|
||||
public void testInClassDeclaration() throws Exception {
|
||||
|
||||
+30
@@ -16468,6 +16468,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -16528,6 +16534,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -16588,6 +16600,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -16599,6 +16617,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16713,6 +16737,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inClassDeclaration.kt")
|
||||
public void testInClassDeclaration() throws Exception {
|
||||
|
||||
+30
@@ -16468,6 +16468,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -16528,6 +16534,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -16588,6 +16600,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -16599,6 +16617,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16713,6 +16737,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inClassDeclaration.kt")
|
||||
public void testInClassDeclaration() throws Exception {
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// IGNORE_BACKEND_K1: ANY
|
||||
// WITH_STDLIB
|
||||
|
||||
object CommonCase {
|
||||
interface Fas<D, E, R>
|
||||
|
||||
fun <D, E, R> delegate() : Fas<D, E, R> = object : Fas<D, E, R> {}
|
||||
|
||||
operator fun <D, E, R> Fas<D, E, R>.provideDelegate(host: D, p: Any?): Fas<D, E, R> = this
|
||||
operator fun <D, E, R> Fas<D, E, R>.getValue(receiver: E, p: Any?): R = "OK" as R
|
||||
|
||||
val Long.test1: String by delegate()
|
||||
val Long.test2: String by delegate<CommonCase, Long, String>()
|
||||
}
|
||||
|
||||
fun box() = with(CommonCase) {
|
||||
require(3L.test1 == "OK" && 3L.test2 == "OK")
|
||||
"OK"
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
// IGNORE_BACKEND_K1: ANY
|
||||
// WITH_STDLIB
|
||||
|
||||
object Inference2 {
|
||||
interface Foo<T>
|
||||
|
||||
fun <T> delegate(): Foo<T> = object : Foo<T> {}
|
||||
|
||||
operator fun <T> Foo<T>.provideDelegate(host: T, p: Any?): Foo<T> = this
|
||||
operator fun <T> Foo<T>.getValue(receiver: Inference2, p: Any?): String = "OK"
|
||||
|
||||
val test1: String by delegate() // same story like in Inference1
|
||||
val test2: String by delegate<Inference2>()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
require(Inference2.test1 == "OK" && Inference2.test2 == "OK")
|
||||
return "OK"
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
FILE: notNullAssertionInLocalDelegated.kt
|
||||
public final data class Ref<D> : R|kotlin/Any| {
|
||||
public constructor<D>(t: R|D|): R|Ref<D>| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final val t: R|D| = R|<local>/t|
|
||||
public get(): R|D|
|
||||
|
||||
public final operator fun component1(): R|D|
|
||||
|
||||
public final fun copy(t: R|D| = this@R|/Ref|.R|/Ref.t|): R|Ref<D>|
|
||||
|
||||
}
|
||||
public final class GenericDelegate<G> : R|kotlin/Any| {
|
||||
public constructor<G>(value: R|G|): R|GenericDelegate<G>| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final val value: R|G| = R|<local>/value|
|
||||
public get(): R|G|
|
||||
|
||||
}
|
||||
public final operator fun <V> R|Ref<V>|.provideDelegate(a: R|kotlin/Any?|, p: R|kotlin/reflect/KProperty<*>|): R|GenericDelegate<V>| {
|
||||
^provideDelegate R|/GenericDelegate.GenericDelegate|<R|V|>(this@R|/provideDelegate|.R|SubstitutionOverride</Ref.t: R|V|>|)
|
||||
}
|
||||
public final operator fun <W> R|GenericDelegate<W>|.getValue(a: R|kotlin/Any?|, p: R|kotlin/reflect/KProperty<*>|): R|W| {
|
||||
^getValue this@R|/getValue|.R|SubstitutionOverride</GenericDelegate.value: R|W|>|
|
||||
}
|
||||
public final fun <E> R|kotlin/collections/List<Ref<*>>|.getElement(i: R|kotlin/Int|): R|Ref<E>| {
|
||||
^getElement (this@R|/getElement|.R|SubstitutionOverride<kotlin/collections/List.get: R|Ref<*>|>|(R|<local>/i|) as R|Ref<E>|)
|
||||
}
|
||||
@R|kotlin/Suppress|(names = vararg(String(UNNECESSARY_NOT_NULL_ASSERTION))) public final fun test(list: R|kotlin/collections/List<Ref<*>>|): R|kotlin/Unit| {
|
||||
lval data: R|kotlin/String|by R|<local>/list|.R|/getElement|<R|kotlin/String|>(Int(0))!!.R|/provideDelegate|<R|kotlin/String|>(Null(null), ::R|<local>/data|)
|
||||
R|kotlin/require|(==(R|<local>/data|, R|<local>/list|.R|SubstitutionOverride<kotlin/collections/List.get: R|Ref<*>|>|(Int(0)).R|SubstitutionOverride</Ref.t: R|CapturedType(*)|>|))
|
||||
lval data2: R|kotlin/String|by R|<local>/list|.R|/getElement|<R|kotlin/String|>(Int(0)).R|/provideDelegate|<R|kotlin/String|>(Null(null), ::R|<local>/data2|)
|
||||
R|kotlin/require|(==(R|<local>/data2|, R|<local>/list|.R|SubstitutionOverride<kotlin/collections/List.get: R|Ref<*>|>|(Int(0)).R|SubstitutionOverride</Ref.t: R|CapturedType(*)|>|))
|
||||
}
|
||||
public final fun box(): R|kotlin/String| {
|
||||
R|/test|(R|kotlin/collections/listOf|<R|Ref<kotlin/String>|>(R|/Ref.Ref|<R|kotlin/String|>(String(q))))
|
||||
^box String(OK)
|
||||
}
|
||||
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
// ISSUE: KT-58013
|
||||
// WITH_STDLIB
|
||||
// WITH_REFLECT
|
||||
// FIR_DUMP
|
||||
// IGNORE_BACKEND_K1: ANY
|
||||
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
data class Ref<D>(val t: D)
|
||||
|
||||
class GenericDelegate<G>(val value: G)
|
||||
|
||||
operator fun <V> Ref<V>.provideDelegate(a: Any?, p: KProperty<*>): GenericDelegate<V> = GenericDelegate(this.t)
|
||||
|
||||
operator fun <W> GenericDelegate<W>.getValue(a: Any?, p: KProperty<*>): W = this.value
|
||||
|
||||
fun <E> List<Ref<*>>.getElement(i: Int): Ref<E> = this[i] as Ref<E>
|
||||
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
fun test(list: List<Ref<*>>) {
|
||||
val data: String by list.getElement(0)!!
|
||||
require(data == list[0].t)
|
||||
|
||||
val data2: String by list.getElement(0)
|
||||
require(data2 == list[0].t)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(listOf(Ref("q")))
|
||||
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// ISSUE: KT-61077
|
||||
// IGNORE_BACKEND_K1: ANY
|
||||
// WITH_STDLIB
|
||||
|
||||
data class Delegate<T>(val data: T)
|
||||
|
||||
var counter = 0
|
||||
|
||||
operator fun Delegate<*>.getValue(receiver: Any?, p: Any): String = this.data.toString()
|
||||
operator fun <T> Delegate<T>.setValue(receiver: Any?, p: Any, value: T) {
|
||||
require(value == "OK")
|
||||
counter++
|
||||
}
|
||||
|
||||
operator fun <T> String.provideDelegate(receiver: Any?, p: Any) = Delegate<T>(this as T)
|
||||
|
||||
var test1: String by Delegate("OK1")
|
||||
var test2: String by Delegate<String>("OK2")
|
||||
|
||||
var test3: String by "OK3"
|
||||
|
||||
var test4: String by "OK4".provideDelegate(null, "")
|
||||
var test5: String by "OK5".provideDelegate<String>(null, "")
|
||||
|
||||
fun box(): String {
|
||||
require(test1 == "OK1")
|
||||
test1 = "OK"
|
||||
require(test2 == "OK2")
|
||||
test2 = "OK"
|
||||
require(test3 == "OK3")
|
||||
test3 = "OK"
|
||||
require(test4 == "OK4")
|
||||
test4 = "OK"
|
||||
require(test5 == "OK5")
|
||||
test5 = "OK"
|
||||
require(counter == 5) { "Counter counter is $counter" }
|
||||
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
// ISSUE: KT-58754
|
||||
// IGNORE_BACKEND_K1: ANY
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
fun foo(): Int = 1
|
||||
fun bar(): Int = 2
|
||||
|
||||
class Test(b: Boolean) {
|
||||
val test_1 by lazy {
|
||||
val a = if (b) {
|
||||
::foo
|
||||
} else {
|
||||
::bar
|
||||
}
|
||||
a
|
||||
}
|
||||
|
||||
val test_2 by lazy {
|
||||
val a = if (b) ::foo else ::bar
|
||||
a
|
||||
}
|
||||
|
||||
val test_3 by lazy {
|
||||
val a = when {
|
||||
b -> { ::foo }
|
||||
else -> { ::bar }
|
||||
}
|
||||
a
|
||||
}
|
||||
|
||||
val test_4 by lazy {
|
||||
val a = when {
|
||||
b -> ::foo
|
||||
else -> ::bar
|
||||
}
|
||||
a
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
with(Test(b = false)) {
|
||||
require(test_1() == bar())
|
||||
require(test_2() == bar())
|
||||
require(test_3() == bar())
|
||||
require(test_4() == bar())
|
||||
}
|
||||
with(Test(b = true)) {
|
||||
require(test_1() == foo())
|
||||
require(test_2() == foo())
|
||||
require(test_3() == foo())
|
||||
require(test_4() == foo())
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
+30
@@ -16096,6 +16096,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -16156,6 +16162,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -16216,6 +16228,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -16227,6 +16245,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16341,6 +16365,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inClassDeclaration.kt")
|
||||
public void testInClassDeclaration() throws Exception {
|
||||
|
||||
+30
@@ -16468,6 +16468,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -16528,6 +16534,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -16588,6 +16600,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -16599,6 +16617,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16713,6 +16737,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inClassDeclaration.kt")
|
||||
public void testInClassDeclaration() throws Exception {
|
||||
|
||||
+30
@@ -16468,6 +16468,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -16528,6 +16534,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -16588,6 +16600,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -16599,6 +16617,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16713,6 +16737,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inClassDeclaration.kt")
|
||||
public void testInClassDeclaration() throws Exception {
|
||||
|
||||
+25
@@ -13575,6 +13575,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/delegatedPropertyWithIdProvideDelegate.kt");
|
||||
@@ -13625,6 +13630,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inlineProvideDelegate.kt");
|
||||
@@ -13675,6 +13685,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/propertyMetadata.kt");
|
||||
@@ -13684,6 +13699,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13784,6 +13804,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inClassDeclaration.kt")
|
||||
public void testInClassDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/inClassDeclaration.kt");
|
||||
|
||||
+30
@@ -12490,6 +12490,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -12550,6 +12556,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -12604,6 +12616,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -12615,6 +12633,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12663,6 +12687,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inDataClass.kt")
|
||||
public void testInDataClass() throws Exception {
|
||||
|
||||
Generated
+30
@@ -12490,6 +12490,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -12550,6 +12556,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -12604,6 +12616,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -12615,6 +12633,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12663,6 +12687,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inDataClass.kt")
|
||||
public void testInDataClass() throws Exception {
|
||||
|
||||
+30
@@ -12490,6 +12490,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -12550,6 +12556,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -12604,6 +12616,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -12615,6 +12633,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12663,6 +12687,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inDataClass.kt")
|
||||
public void testInDataClass() throws Exception {
|
||||
|
||||
+30
@@ -12490,6 +12490,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -12550,6 +12556,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -12604,6 +12616,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -12615,6 +12633,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12663,6 +12687,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inDataClass.kt")
|
||||
public void testInDataClass() throws Exception {
|
||||
|
||||
+30
@@ -13542,6 +13542,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -13602,6 +13608,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -13656,6 +13668,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -13667,6 +13685,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13718,6 +13742,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inDataClass.kt")
|
||||
public void testInDataClass() throws Exception {
|
||||
|
||||
+30
@@ -13854,6 +13854,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -13914,6 +13920,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -13968,6 +13980,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -13979,6 +13997,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14032,6 +14056,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inDataClass.kt")
|
||||
public void testInDataClass() throws Exception {
|
||||
|
||||
+30
@@ -13230,6 +13230,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -13290,6 +13296,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -13344,6 +13356,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -13355,6 +13373,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13404,6 +13428,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inDataClass.kt")
|
||||
public void testInDataClass() throws Exception {
|
||||
|
||||
+30
@@ -13543,6 +13543,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -13603,6 +13609,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -13657,6 +13669,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -13668,6 +13686,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13719,6 +13743,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inDataClass.kt")
|
||||
public void testInDataClass() throws Exception {
|
||||
|
||||
Generated
+30
@@ -12466,6 +12466,12 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -12526,6 +12532,12 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -12580,6 +12592,12 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -12591,6 +12609,12 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12639,6 +12663,12 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inDataClass.kt")
|
||||
public void testInDataClass() throws Exception {
|
||||
|
||||
Generated
+30
@@ -12466,6 +12466,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("commonCaseForInference.kt")
|
||||
public void testCommonCaseForInference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
|
||||
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
|
||||
@@ -12526,6 +12532,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferenceFromReceiver2.kt")
|
||||
public void testInferenceFromReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProvideDelegate.kt")
|
||||
public void testInlineProvideDelegate() throws Exception {
|
||||
@@ -12580,6 +12592,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullAssertionInLocalDelegated.kt")
|
||||
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyMetadata.kt")
|
||||
public void testPropertyMetadata() throws Exception {
|
||||
@@ -12591,6 +12609,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
||||
public void testProvideDelegateByExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("setValue.kt")
|
||||
public void testSetValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12639,6 +12663,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithCallableReferenceInLazy.kt")
|
||||
public void testIfWithCallableReferenceInLazy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inDataClass.kt")
|
||||
public void testInDataClass() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user