FIR checker: warn unnecessary non-null assertions
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5229d4e4f4
commit
2ecb6733ed
@@ -11,7 +11,7 @@ fun f1(a: String?) {
|
||||
}
|
||||
|
||||
fun f2(a: String) {
|
||||
a!!
|
||||
a<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>
|
||||
checkSubtype<String>(a)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user