diff --git a/compiler/testData/codegen/box/delegatedProperty/local/iinc.kt b/compiler/testData/codegen/box/delegatedProperty/local/iinc.kt deleted file mode 100644 index 1e80caf7a26..00000000000 --- a/compiler/testData/codegen/box/delegatedProperty/local/iinc.kt +++ /dev/null @@ -1,17 +0,0 @@ -import kotlin.reflect.KProperty - -class Delegate { - var inner = 1 - operator fun getValue(t: Any?, p: KProperty<*>): Int = inner - operator fun setValue(t: Any?, p: KProperty<*>, i: Int) { - inner = i - } -} - -fun box(): String { - var prop: Int by Delegate() - var result = prop++ - if (result != 1) return "fail increment result: $prop" - if (prop != 2) return "fail increment: $prop" - return "OK" -} diff --git a/compiler/testData/codegen/box/delegatedProperty/local/plusAssign.kt b/compiler/testData/codegen/box/delegatedProperty/local/plusAssign.kt deleted file mode 100644 index 7b9997b6316..00000000000 --- a/compiler/testData/codegen/box/delegatedProperty/local/plusAssign.kt +++ /dev/null @@ -1,16 +0,0 @@ -import kotlin.reflect.KProperty - -class Delegate { - var inner = 1 - operator fun getValue(t: Any?, p: KProperty<*>): Int = inner - operator fun setValue(t: Any?, p: KProperty<*>, i: Int) { - inner = i - } -} - -fun box(): String { - var prop: Int by Delegate() - prop += 1 - if (prop != 2) return "fail : $prop" - return "OK" -} diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java index ca1db8dd618..a552d366272 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java @@ -5262,12 +5262,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { doTest(fileName); } - @TestMetadata("iinc.kt") - public void testIinc() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/iinc.kt"); - doTest(fileName); - } - @TestMetadata("inlineGetValue.kt") public void testInlineGetValue() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/inlineGetValue.kt"); @@ -5291,12 +5285,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/localVar.kt"); doTest(fileName); } - - @TestMetadata("plusAssign.kt") - public void testPlusAssign() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/plusAssign.kt"); - doTest(fileName); - } } }