Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/nestedCalls/inferenceForNestedBinaryCall.kt
T

14 lines
204 B
Kotlin
Vendored

// FIR_IDENTICAL
// !CHECK_TYPE
package aaa
infix fun <T> T.foo(t: T) = t
fun <T> id(t: T) = t
fun a() {
val i = id(2 foo 3)
checkSubtype<Int>(i) // i shouldn't be resolved to error element
}