[FE 1.0] Substituted possible fixed type variables after completion in accordance with @OverloadResolutionByLambdaReturnType
^KT-48031 Fixed
This commit is contained in:
committed by
teamcity
parent
5b5da025f4
commit
3ed87c29c7
@@ -0,0 +1,15 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
|
||||
class Flow<out T>
|
||||
|
||||
@OverloadResolutionByLambdaReturnType
|
||||
@OptIn(kotlin.experimental.ExperimentalTypeInference::class)
|
||||
fun <T> Flow<T>.debounce(timeoutMillis: (T) -> Long): Flow<T> = this
|
||||
|
||||
@JvmName("debounceDuration")
|
||||
@OptIn(kotlin.experimental.ExperimentalTypeInference::class)
|
||||
@OverloadResolutionByLambdaReturnType
|
||||
fun <T> Flow<T>.debounce(timeout: (T) -> String): Flow<T> = this
|
||||
|
||||
fun invalidFlow(x: Flow<Int>): Flow<Int> = x.debounce { value -> 0 }
|
||||
@@ -0,0 +1,12 @@
|
||||
package
|
||||
|
||||
public fun invalidFlow(/*0*/ x: Flow<kotlin.Int>): Flow<kotlin.Int>
|
||||
@kotlin.OverloadResolutionByLambdaReturnType @kotlin.OptIn(markerClass = {kotlin.experimental.ExperimentalTypeInference::class}) public fun </*0*/ T> Flow<T>.debounce(/*0*/ timeoutMillis: (T) -> kotlin.Long): Flow<T>
|
||||
@kotlin.jvm.JvmName(name = "debounceDuration") @kotlin.OptIn(markerClass = {kotlin.experimental.ExperimentalTypeInference::class}) @kotlin.OverloadResolutionByLambdaReturnType public fun </*0*/ T> Flow<T>.debounce(/*0*/ timeout: (T) -> kotlin.String): Flow<T>
|
||||
|
||||
public final class Flow</*0*/ out T> {
|
||||
public constructor Flow</*0*/ out T>()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user