Don't report "Unsafe call with ? extension receiver" with smart-cast

#KT-29499 Fixed
This commit is contained in:
Mikhail Glukhikh
2019-03-01 17:08:20 +03:00
parent 4d19120d84
commit c714e599ea
2 changed files with 20 additions and 3 deletions
@@ -6,6 +6,11 @@ fun test() {
JavaClass.getNull().contentNotInline() // OK
JavaClass.getMy().contentNonExtensionInlineFun() // OK
val res = JavaClass.getNull()
if (res != null) {
res.toBoolean() // OK: KT-29499
}
}
fun String.contentNotInline() {}