Add "Redundant 'requireNotNull' or 'checkNotNull' call" inspection
#KT-29113 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c234683770
commit
fa1f3871c0
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
fun test(s: String?) {
|
||||
if (s != null) {
|
||||
println(1)
|
||||
requireNotNull<caret>(s) { "" }
|
||||
println(2)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user