Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/nestedCalls/inferenceForNestedBinaryCall.kt
T
2015-04-29 16:33:24 +02:00

13 lines
180 B
Kotlin
Vendored

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