FIR checker: warn unnecessary non-null assertions
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5229d4e4f4
commit
2ecb6733ed
+2
-2
@@ -4,8 +4,8 @@
|
||||
fun use(a: Any?) = a
|
||||
|
||||
fun test() {
|
||||
{ }!!
|
||||
use({ }!!);
|
||||
{ }<!NOT_NULL_ASSERTION_ON_LAMBDA_EXPRESSION!>!!<!>
|
||||
use({ }<!NOT_NULL_ASSERTION_ON_LAMBDA_EXPRESSION!>!!<!>);
|
||||
|
||||
// KT-KT-9070
|
||||
{ } ?: 1
|
||||
|
||||
Reference in New Issue
Block a user