Redundant lambda arrow: fix false positive in 'when/if' without block #KT-28047 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-11-08 12:05:46 +09:00
committed by Mikhail Glukhikh
parent 0bfcfb5716
commit 4ae837e669
11 changed files with 102 additions and 0 deletions
@@ -0,0 +1,7 @@
fun test(): (Int) -> Int {
return if (true) {
{ 42 }
} else {
{ _ -> 42 }
}
}