FIR checker: warn unnecessary non-null assertions

This commit is contained in:
Jinseong Jeon
2021-04-01 11:44:47 -07:00
committed by Mikhail Glukhikh
parent 5229d4e4f4
commit 2ecb6733ed
72 changed files with 268 additions and 246 deletions
@@ -2,7 +2,7 @@
fun testCompound() {
operator fun Nothing.get(i: Int) {}
todo()!![12]
todo()<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>[12]
}
fun testCompound1() {
@@ -10,4 +10,4 @@ fun testCompound1() {
(todo() * "")[1]
}
fun todo(): Nothing = throw Exception()
fun todo(): Nothing = throw Exception()