Remove redundant let: do not report for function stored in variable call

#KT-30082 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-02-27 20:20:00 +09:00
committed by Mikhail Glukhikh
parent 304007f602
commit 6ca22fbf34
5 changed files with 32 additions and 1 deletions
@@ -0,0 +1,6 @@
// WITH_RUNTIME
class Foo(val bar: () -> Int)
fun bar(foo: Foo?) {
foo?.<caret>let { it.bar.invoke() }
}