Temporary removed increment and '+=' tests on local delegated properties

This commit is contained in:
Mikhael Bogdanov
2016-06-27 12:13:28 +03:00
parent 6d04c6e102
commit 5df52e08cc
3 changed files with 0 additions and 45 deletions
@@ -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"
}
@@ -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"
}
@@ -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);
}
}
}