[JS, Frontend] Add test with extension member in external interface
This commit is contained in:
committed by
TeamCityServer
parent
83c1a119ee
commit
eed23ddbe3
Generated
+5
@@ -3307,6 +3307,11 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
|
||||
runTest("js/js.translator/testData/box/extensionFunction/implicitReceiverInExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inExternalInterface.kt")
|
||||
public void testInExternalInterface() throws Exception {
|
||||
runTest("js/js.translator/testData/box/extensionFunction/inExternalInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intExtension.kt")
|
||||
public void testIntExtension() throws Exception {
|
||||
runTest("js/js.translator/testData/box/extensionFunction/intExtension.kt");
|
||||
|
||||
+5
@@ -3307,6 +3307,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/extensionFunction/implicitReceiverInExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inExternalInterface.kt")
|
||||
public void testInExternalInterface() throws Exception {
|
||||
runTest("js/js.translator/testData/box/extensionFunction/inExternalInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intExtension.kt")
|
||||
public void testIntExtension() throws Exception {
|
||||
runTest("js/js.translator/testData/box/extensionFunction/intExtension.kt");
|
||||
|
||||
+5
@@ -3322,6 +3322,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/extensionFunction/implicitReceiverInExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inExternalInterface.kt")
|
||||
public void testInExternalInterface() throws Exception {
|
||||
runTest("js/js.translator/testData/box/extensionFunction/inExternalInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intExtension.kt")
|
||||
public void testIntExtension() throws Exception {
|
||||
runTest("js/js.translator/testData/box/extensionFunction/intExtension.kt");
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// !LANGUAGE: +JsEnableExtensionFunctionInExternals
|
||||
|
||||
external interface Foo {
|
||||
fun foo(): String.() -> Unit
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user