RedundantLetInspection: fix false positive with nullable receiver extension call
#KT-31601 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
a6139f3635
commit
266149b88c
+14
@@ -0,0 +1,14 @@
|
||||
// WITH_RUNTIME
|
||||
// PROBLEM: none
|
||||
class A(val b: B?)
|
||||
class B
|
||||
class C(val d: D)
|
||||
class D
|
||||
|
||||
fun B?.getC(): C {
|
||||
return C(D())
|
||||
}
|
||||
|
||||
fun test(a: A?) {
|
||||
a?.let<caret> { it.b.getC().d }
|
||||
}
|
||||
Reference in New Issue
Block a user