FIR checker: warn unnecessary non-null assertions
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5229d4e4f4
commit
2ecb6733ed
Vendored
+2
-2
@@ -9,7 +9,7 @@ fun testPostfixWithCall(n: Nothing) {
|
||||
}
|
||||
|
||||
fun testPostfixSpecial() {
|
||||
todo()!!
|
||||
todo()<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>
|
||||
}
|
||||
|
||||
fun todo(): Nothing = throw Exception()
|
||||
fun todo(): Nothing = throw Exception()
|
||||
|
||||
Reference in New Issue
Block a user