Change variance of return type of Promise.all function

See KT-18624
This commit is contained in:
Alexey Andreev
2017-06-27 11:49:50 +03:00
parent 479148f7e0
commit 1fa7193901
+1 -1
View File
@@ -21,7 +21,7 @@ package kotlin.js
*/
public open external class Promise<out T>(executor: (resolve: (T) -> Unit, reject: (Throwable) -> Unit) -> Unit) {
companion object {
public fun <S> all(promise: Array<out Promise<S>>): Promise<Array<in S>>
public fun <S> all(promise: Array<out Promise<S>>): Promise<Array<out S>>
public fun <S> race(promise: Array<out Promise<S>>): Promise<S>