Test for obsolete KT-6453

#KT-6453 Obsolete
This commit is contained in:
Michael Bogdanov
2015-10-19 09:49:27 +03:00
committed by Max Kammerer
parent 378233e1f5
commit 1d84103cce
4 changed files with 27 additions and 0 deletions
@@ -0,0 +1,7 @@
import test.*
fun box(): String {
var r = "fail"
A().foo { r = it }
return r
}
@@ -0,0 +1,8 @@
package test
class A() {
private val x = "OK"
internal inline fun foo(p: (String) -> Unit) {
p(x)
}
}
@@ -1003,6 +1003,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/private"), Pattern.compile("^(.+)\\.1.kt$"), true);
}
@TestMetadata("kt6453.1.kt")
public void testKt6453() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/kt6453.1.kt");
doTestMultiFileWithInlineCheck(fileName);
}
@TestMetadata("kt8094.1.kt")
public void testKt8094() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/kt8094.1.kt");
@@ -1003,6 +1003,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/private"), Pattern.compile("^(.+)\\.1.kt$"), true);
}
@TestMetadata("kt6453.1.kt")
public void testKt6453() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/kt6453.1.kt");
doBoxTestWithInlineCheck(fileName);
}
@TestMetadata("kt8094.1.kt")
public void testKt8094() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/kt8094.1.kt");