Files
kotlin-fork/idea/testData/inspectionsLocal/mapGetWithNotNullAssertionOperator/replaceWithGetOrElse.kt
T
Toshiaki Kameyama d67c793a9b map.get() with not-null assertion: add quick-fixes
#KT-30010 Fixed
2019-03-01 11:11:05 +03:00

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>!!
}