Files
kotlin-fork/compiler/testData/codegen/box/regressions/resolvedCallForGetOperator.kt
T
Stanislav Erokhin 2ceb8cef36 [NI] Use same ResolvedCall when run completion
It is necessary, because some clients store this ResolvedCall to other
places, for example for get call it stored to INDEXED_LVALUE_GET
2017-08-25 03:38:49 +03:00

9 lines
207 B
Kotlin
Vendored

// WITH_RUNTIME
val targetNameLists: Map<String, String> = mapOf("1" to "OK")
fun <T> id(t: T) = t
fun foo(argumentName: String?): String? = id(targetNameLists[argumentName])
fun box() = foo("1")