test: change function id in implicit cast test to prevent name clash.
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ declare namespace JS_TESTS {
|
|||||||
class H /* extends foo.NonExportedGenericType<foo.NonExportedType> */ {
|
class H /* extends foo.NonExportedGenericType<foo.NonExportedType> */ {
|
||||||
constructor();
|
constructor();
|
||||||
}
|
}
|
||||||
function foo(a: number): Promise<number>;
|
function baz(a: number): Promise<number>;
|
||||||
function bar(): Error;
|
function bar(): Error;
|
||||||
const console: Console;
|
const console: Console;
|
||||||
const error: WebAssembly.CompileError;
|
const error: WebAssembly.CompileError;
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ class G : NonExportedGenericInterface<NonExportedType>
|
|||||||
class H : NonExportedGenericType<NonExportedType>(NonExportedType(42))
|
class H : NonExportedGenericType<NonExportedType>(NonExportedType(42))
|
||||||
|
|
||||||
@JsExport
|
@JsExport
|
||||||
fun foo(a: Int): kotlin.js.Promise<Int> {
|
fun baz(a: Int): kotlin.js.Promise<Int> {
|
||||||
return kotlin.js.Promise<Int> { res, rej -> res(a) }
|
return kotlin.js.Promise<Int> { res, rej -> res(a) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user