Test for obsolete KT-8095
#KT-8095 Obsolete
This commit is contained in:
committed by
Max Kammerer
parent
32d51af5dd
commit
378233e1f5
@@ -0,0 +1,7 @@
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
var r = "fail"
|
||||
C("OK").g { r = it }
|
||||
return r
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
class C(private val a : String) {
|
||||
internal inline fun g(x: (s: String) -> Unit) {
|
||||
x(a)
|
||||
}
|
||||
}
|
||||
+6
@@ -1009,6 +1009,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
||||
doTestMultiFileWithInlineCheck(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt8095.1.kt")
|
||||
public void testKt8095() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/kt8095.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
@@ -1009,6 +1009,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
||||
doBoxTestWithInlineCheck(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt8095.1.kt")
|
||||
public void testKt8095() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/kt8095.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