Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/nestedCalls/inferenceForNestedBinaryCall.kt
T
Svetlana Isakova 0eed0c6c7f extracted 'getResultingCall' method
rewrote 'getResultingType' in terms of it
2013-09-02 23:18:43 +04:00

11 lines
151 B
Kotlin

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