map.get() with not-null assertion: add quick-fixes

#KT-30010 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-02-22 12:07:38 +09:00
committed by Mikhail Glukhikh
parent 84a3239cdf
commit d67c793a9b
11 changed files with 73 additions and 2 deletions
@@ -0,0 +1,6 @@
// FIX: Replace with 'getOrElse' call
// DISABLE-ERRORS
// WITH_RUNTIME
fun test(map: Map<Int, String>) {
val s = map[1]<caret>!!
}