Files
kotlin-fork/compiler/testData/resolvedCalls/arguments/realExamples/emptyList.kt
T
2014-07-08 14:48:17 +04:00

13 lines
236 B
Kotlin

// !ONLY_ARGUMENTS
// !CALL: foo
// !ARG_1: emptyList() = ArgumentMatch(t : List<???>, UNINFERRED_TYPE_IN_PARAMETER)
class A {}
fun <T> foo(t: T) {}
fun <T> emptyList(): List<T> = throw Exception()
fun bar() {
foo(emptyList())
}