Test for obsolete KT-8094
#KT-8094 Obsolete
This commit is contained in:
committed by
Max Kammerer
parent
98b818203f
commit
32d51af5dd
@@ -0,0 +1,8 @@
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
var r = "fail"
|
||||
X.g { r = "OK" }
|
||||
|
||||
return r;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
object X {
|
||||
private fun f() { }
|
||||
|
||||
internal inline fun g(x: () -> Unit) {
|
||||
x()
|
||||
f()
|
||||
}
|
||||
}
|
||||
+6
@@ -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("kt8094.1.kt")
|
||||
public void testKt8094() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/kt8094.1.kt");
|
||||
doTestMultiFileWithInlineCheck(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("privateInInlineInMultiFileFacade.1.kt")
|
||||
public void testPrivateInInlineInMultiFileFacade() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.1.kt");
|
||||
|
||||
+6
@@ -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("kt8094.1.kt")
|
||||
public void testKt8094() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/kt8094.1.kt");
|
||||
doBoxTestWithInlineCheck(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("privateInInlineInMultiFileFacade.1.kt")
|
||||
public void testPrivateInInlineInMultiFileFacade() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.1.kt");
|
||||
|
||||
Reference in New Issue
Block a user