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

5 lines
126 B
Plaintext
Vendored

// FIX: Replace with '?: error("")'
// WITH_RUNTIME
fun test(map: Map<Int, String>) {
val s = map[1] ?: error("<caret>")
}