PSI Pattern Matching: Respect type arguments when matching calls
#KT-6496 Fixed
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(c : Collection<String>){
|
||||
c.filterTo(ArrayList<String>())<selection>{ it.length() > 1 }</selection>
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(c : Collection<String>){
|
||||
val function: (String) -> Boolean = { it.length() > 1 }
|
||||
c.filterTo(ArrayList<String>(), function)
|
||||
}
|
||||
Reference in New Issue
Block a user