Files
kotlin-fork/idea/testData/inspectionsLocal/mapGetWithNotNullAssertionOperator/replaceWithGetOrElse.kt.after
T

6 lines
148 B
Plaintext
Vendored

// FIX: Replace with 'getOrElse' call
// DISABLE-ERRORS
// WITH_RUNTIME
fun test(map: Map<Int, String>) {
val s = map.getOrElse(1) { <caret> }
}