Fix "surround with null check": place check correctly for unsafe call
So #KT-16928 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// "Surround with null check" "true"
|
||||
|
||||
fun foo(p: String?) {
|
||||
if (p != null) {
|
||||
Util.f1(Util.f2(p.length), 0)
|
||||
}
|
||||
}
|
||||
|
||||
object Util {
|
||||
fun f1(o: Any, p: Int): Any = o
|
||||
fun f2(o: Any): Any = o
|
||||
}
|
||||
Reference in New Issue
Block a user