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:
@@ -0,0 +1,2 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(list: List<String>) = list.filter <selection>{ it.length() > 6 }</selection>
|
||||
@@ -0,0 +1,2 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(list: List<String>, function: () -> (String) -> Boolean = { { it.length() > 6 } }) = list.filter(function())
|
||||
@@ -0,0 +1,2 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(list: List<String>) = list.filter <selection>{ it.length() > 6 }</selection>
|
||||
@@ -0,0 +1,2 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(list: List<String>, function: (String) -> Boolean = { it.length() > 6 }) = list.filter(function)
|
||||
Reference in New Issue
Block a user