Move lambda argument out of parentheses: fix false negative when function type is type parameter

#KT-26979 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-02-18 10:52:03 +09:00
committed by Mikhail Glukhikh
parent b4789b95ef
commit 8e61a13809
4 changed files with 20 additions and 2 deletions
@@ -0,0 +1,5 @@
fun <T> foo(t: T) {}
fun test() {
foo(<caret>{ "a" })
}
@@ -0,0 +1,5 @@
fun <T> foo(t: T) {}
fun test() {
foo { "a" }
}