FIR checker: warn unnecessary non-null assertions
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5229d4e4f4
commit
2ecb6733ed
Vendored
+2
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user