Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/inference/kt4975.fir.kt
T

10 lines
190 B
Kotlin
Vendored

// !CHECK_TYPE
fun <T> bar(f: () -> T) : T = f()
fun test(map: MutableMap<Int, Int>) {
val r = bar {
map[1] = 2
}
r checkType { <!UNRESOLVED_REFERENCE!>_<!><Unit>() }
}