Temporary removed increment and '+=' tests on local delegated properties
This commit is contained in:
@@ -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);
|
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")
|
@TestMetadata("inlineGetValue.kt")
|
||||||
public void testInlineGetValue() throws Exception {
|
public void testInlineGetValue() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/inlineGetValue.kt");
|
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");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/localVar.kt");
|
||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("plusAssign.kt")
|
|
||||||
public void testPlusAssign() throws Exception {
|
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/plusAssign.kt");
|
|
||||||
doTest(fileName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user