Test for obsolete KT-8047

#KT-8047 Obsolete
This commit is contained in:
Michael Bogdanov
2015-10-28 14:31:19 +03:00
parent f8a70302ac
commit 63f7f90521
4 changed files with 23 additions and 0 deletions
@@ -0,0 +1,6 @@
import test.*
fun box(): String {
f<String>() {}
return "OK"
}
@@ -0,0 +1,5 @@
package test
inline fun f<reified T>(x : () -> Unit) {
object { init { arrayOf<T>() } }
}
@@ -1090,6 +1090,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
doTestMultiFileWithInlineCheck(fileName);
}
@TestMetadata("kt8047.1.kt")
public void testKt8047() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/reified/kt8047.1.kt");
doTestMultiFileWithInlineCheck(fileName);
}
@TestMetadata("packages.1.kt")
public void testPackages() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/reified/packages.1.kt");
@@ -1090,6 +1090,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
doBoxTestWithInlineCheck(fileName);
}
@TestMetadata("kt8047.1.kt")
public void testKt8047() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/reified/kt8047.1.kt");
doBoxTestWithInlineCheck(fileName);
}
@TestMetadata("packages.1.kt")
public void testPackages() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/reified/packages.1.kt");