Related to KT-20631: don't report redundant blank Unit in lambda

This commit is contained in:
Mikhail Glukhikh
2017-10-31 16:38:55 +03:00
parent 0fd4cdb086
commit d59276671f
7 changed files with 22 additions and 32 deletions
@@ -0,0 +1,12 @@
// PROBLEM: none
fun <T> run(f: () -> T) = f()
fun foo(s: String) = s
fun test() {
run {
foo("Hello")
<caret>Unit
}
}