Create parameter: Forbid inplace refactoring if occurrences contain out-of-parentheses lambda arguments. Fix lambda argument replacement

#KT-9307 Fixed
This commit is contained in:
Alexey Sedunov
2015-09-28 18:27:41 +03:00
parent b805645489
commit 007c7c17f0
6 changed files with 35 additions and 2 deletions
@@ -0,0 +1,2 @@
// WITH_RUNTIME
fun foo(list: List<String>, function: () -> (String) -> Boolean = { { it.length() > 6 } }) = list.filter(function())