[JS TESTS] Move externals.js into main module in functionTypes.kt

This commit is contained in:
Ivan Kylchik
2021-11-08 23:42:42 +03:00
parent 81211acbc0
commit ef8199718e
+24 -24
View File
@@ -2,6 +2,7 @@
// Char issues
// IGNORE_BACKEND: JS_IR
// MODULE: main
// FILE: externals.js
function apply7(f) {
@@ -19,18 +20,18 @@ function is123Array(ei) {
}
function externalWithLambdas2(
boolean, // () -> Boolean,
byte, // () -> Byte,
short, // () -> Short,
char, // () -> Char,
int, // () -> Int,
long, // () -> Long,
float, // () -> Float,
double, // () -> Double,
string, // () -> String,
ei, // () -> EI,
dc, // () -> DC,
dcGetY, // (DC) -> Int
boolean, // () -> Boolean,
byte, // () -> Byte,
short, // () -> Short,
char, // () -> Char,
int, // () -> Int,
long, // () -> Long,
float, // () -> Float,
double, // () -> Double,
string, // () -> String,
ei, // () -> EI,
dc, // () -> DC,
dcGetY, // (DC) -> Int
) {
let result = 0
function test(boolean) {
@@ -54,17 +55,17 @@ function externalWithLambdas2(
function createJsLambda() {
return (
boolean,
byte,
short,
char,
int,
long,
float,
double,
string,
ei,
dc,
dcGetY
byte,
short,
char,
int,
long,
float,
double,
string,
ei,
dc,
dcGetY
) => {
let result = 0;
function test(x) {
@@ -86,7 +87,6 @@ function createJsLambda() {
};
}
// MODULE: main
// FILE: externals.kt
external fun createJsLambda(): (Boolean, Byte, Short, Char, Int, Long, Float, Double, String, EI, DC, (DC) -> Int) -> Int