Don't report "Unsafe call with ? extension receiver" with smart-cast
#KT-29499 Fixed
This commit is contained in:
Vendored
+5
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user