JS: add tests for private external declarations
This commit is contained in:
@@ -6008,6 +6008,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateExternal.kt")
|
||||||
|
public void testPrivateExternal() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/native/privateExternal.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("safeCastToNativeInterface.kt")
|
@TestMetadata("safeCastToNativeInterface.kt")
|
||||||
public void testSafeCastToNativeInterface() throws Exception {
|
public void testSafeCastToNativeInterface() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/native/safeCastToNativeInterface.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/native/safeCastToNativeInterface.kt");
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
function foo() {
|
||||||
|
return "OK";
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
private external fun foo(): String
|
||||||
|
|
||||||
|
fun box() = foo()
|
||||||
Reference in New Issue
Block a user