Fix parameter handling in "Move suspicious reference into parentheses"

Related to KT-21743
This commit is contained in:
Mikhail Glukhikh
2018-03-21 09:53:38 +03:00
parent fbd06dc74f
commit b739db3c35
4 changed files with 25 additions and 2 deletions
@@ -0,0 +1,6 @@
// FIX: Move suspicious callable reference into parentheses '()'
// WITH_RUNTIME
fun foo(bar: Int) {
listOf(1,2,3).map {<caret> bar::plus }
}
@@ -0,0 +1,6 @@
// FIX: Move suspicious callable reference into parentheses '()'
// WITH_RUNTIME
fun foo(bar: Int) {
listOf(1,2,3).map(bar::plus)
}