Add tests for obsolete issues

#KT-21085 Obsolete
 #KT-13846 Obsolete
This commit is contained in:
Mikhael Bogdanov
2019-02-07 11:28:46 +01:00
parent 6d24d50df6
commit 6aaa601239
7 changed files with 79 additions and 0 deletions
@@ -0,0 +1,15 @@
// IGNORE_BACKEND: JVM_IR
class Delegate(val value: String) {
operator fun getValue(thisRef: Any?, kProperty: Any?) = value
}
fun box(): String {
val x by Delegate("O")
class Local(val y: String) {
val fn = { x + y }
}
return Local("K").fn()
}
@@ -0,0 +1,14 @@
open class SuperClass(val arg: () -> String)
object obj {
fun foo(): String {
return "OK"
}
class Foo : SuperClass(::foo)
}
fun box(): String {
return obj.Foo().arg()
}
@@ -9250,6 +9250,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt19690.kt");
}
@TestMetadata("kt21085.kt")
public void testKt21085() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt21085.kt");
}
@TestMetadata("kt23117.kt")
public void testKt23117() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt23117.kt");
@@ -23399,6 +23404,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/super/superConstructor"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
}
@TestMetadata("kt13846.kt")
public void testKt13846() throws Exception {
runTest("compiler/testData/codegen/box/super/superConstructor/kt13846.kt");
}
@TestMetadata("kt17464_arrayOf.kt")
public void testKt17464_arrayOf() throws Exception {
runTest("compiler/testData/codegen/box/super/superConstructor/kt17464_arrayOf.kt");
@@ -9250,6 +9250,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt19690.kt");
}
@TestMetadata("kt21085.kt")
public void testKt21085() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt21085.kt");
}
@TestMetadata("kt23117.kt")
public void testKt23117() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt23117.kt");
@@ -23399,6 +23404,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/super/superConstructor"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
}
@TestMetadata("kt13846.kt")
public void testKt13846() throws Exception {
runTest("compiler/testData/codegen/box/super/superConstructor/kt13846.kt");
}
@TestMetadata("kt17464_arrayOf.kt")
public void testKt17464_arrayOf() throws Exception {
runTest("compiler/testData/codegen/box/super/superConstructor/kt17464_arrayOf.kt");
@@ -9250,6 +9250,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt19690.kt");
}
@TestMetadata("kt21085.kt")
public void testKt21085() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt21085.kt");
}
@TestMetadata("kt23117.kt")
public void testKt23117() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt23117.kt");
@@ -23404,6 +23409,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/super/superConstructor"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM_IR, true);
}
@TestMetadata("kt13846.kt")
public void testKt13846() throws Exception {
runTest("compiler/testData/codegen/box/super/superConstructor/kt13846.kt");
}
@TestMetadata("kt17464_arrayOf.kt")
public void testKt17464_arrayOf() throws Exception {
runTest("compiler/testData/codegen/box/super/superConstructor/kt17464_arrayOf.kt");
@@ -7135,6 +7135,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt19690.kt");
}
@TestMetadata("kt21085.kt")
public void testKt21085() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt21085.kt");
}
@TestMetadata("kt23117.kt")
public void testKt23117() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt23117.kt");
@@ -18004,6 +18009,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/super/superConstructor"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, true);
}
@TestMetadata("kt13846.kt")
public void testKt13846() throws Exception {
runTest("compiler/testData/codegen/box/super/superConstructor/kt13846.kt");
}
@TestMetadata("kt17464_arrayOf.kt")
public void testKt17464_arrayOf() throws Exception {
runTest("compiler/testData/codegen/box/super/superConstructor/kt17464_arrayOf.kt");
@@ -8225,6 +8225,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt19690.kt");
}
@TestMetadata("kt21085.kt")
public void testKt21085() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt21085.kt");
}
@TestMetadata("kt23117.kt")
public void testKt23117() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/local/kt23117.kt");
@@ -19094,6 +19099,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/super/superConstructor"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true);
}
@TestMetadata("kt13846.kt")
public void testKt13846() throws Exception {
runTest("compiler/testData/codegen/box/super/superConstructor/kt13846.kt");
}
@TestMetadata("kt17464_arrayOf.kt")
public void testKt17464_arrayOf() throws Exception {
runTest("compiler/testData/codegen/box/super/superConstructor/kt17464_arrayOf.kt");