Disable New Inference in JS backend
See #KT-37163 for details
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
$TESTDATA_DIR$/reifiedIntersectionType.kt
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
@@ -0,0 +1,16 @@
|
||||
fun test1() {
|
||||
val flow = combine(
|
||||
flowOf("1"),
|
||||
flowOf(2)
|
||||
) { arr -> arr.joinToString() }
|
||||
}
|
||||
|
||||
fun <T> Array<out T>.joinToString(): String = ""
|
||||
|
||||
public inline fun <reified T, R> combine(
|
||||
vararg flows: Flow<T>,
|
||||
crossinline transform: suspend (Array<T>) -> R
|
||||
): Flow<R> = TODO()
|
||||
|
||||
fun <T> flowOf(value: T): Flow<T> = TODO()
|
||||
interface Flow<out T>
|
||||
@@ -0,0 +1,13 @@
|
||||
compiler/testData/cli/js/reifiedIntersectionType.kt:2:9: warning: variable 'flow' is never used
|
||||
val flow = combine(
|
||||
^
|
||||
compiler/testData/cli/js/reifiedIntersectionType.kt:11:12: warning: parameter 'flows' is never used
|
||||
vararg flows: Flow<T>,
|
||||
^
|
||||
compiler/testData/cli/js/reifiedIntersectionType.kt:12:17: warning: parameter 'transform' is never used
|
||||
crossinline transform: suspend (Array<T>) -> R
|
||||
^
|
||||
compiler/testData/cli/js/reifiedIntersectionType.kt:15:16: warning: parameter 'value' is never used
|
||||
fun <T> flowOf(value: T): Flow<T> = TODO()
|
||||
^
|
||||
OK
|
||||
Reference in New Issue
Block a user