Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/nestedCalls/inferenceForNestedBinaryCall.kt
T
2015-10-07 15:50:23 +03:00

13 lines
187 B
Kotlin
Vendored

// !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
}