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

6 lines
135 B
Kotlin
Vendored

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