Remove redundant let: do not report for function stored in variable call
#KT-30082 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
304007f602
commit
6ca22fbf34
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
class Foo(val bar: () -> Int)
|
||||
|
||||
fun bar(foo: Foo?) {
|
||||
foo?.<caret>let { it.bar.invoke() }
|
||||
}
|
||||
Reference in New Issue
Block a user