Added tests
#KT-6179 Fixed #KT-8132 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import java.util.ArrayList
|
||||
|
||||
fun foo(c: Collection<String>) {
|
||||
val list = ArrayList<String>()
|
||||
c.filterTo0(<caret>)
|
||||
}
|
||||
|
||||
fun <T, C : MutableCollection<in T>> Iterable<T>.filterTo0(destination: C, predicate: (T) -> Boolean): C = destination
|
||||
|
||||
//ELEMENT: list
|
||||
@@ -0,0 +1,10 @@
|
||||
import java.util.ArrayList
|
||||
|
||||
fun foo(c: Collection<String>) {
|
||||
val list = ArrayList<String>()
|
||||
c.filterTo0(list)
|
||||
}
|
||||
|
||||
fun <T, C : MutableCollection<in T>> Iterable<T>.filterTo0(destination: C, predicate: (T) -> Boolean): C = destination
|
||||
|
||||
//ELEMENT: list
|
||||
+6
@@ -443,6 +443,12 @@ public class SmartCompletionHandlerTestGenerated extends AbstractSmartCompletion
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt6179filterTo.kt")
|
||||
public void testKt6179filterTo() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/smart/kt6179filterTo.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("Lambda1.kt")
|
||||
public void testLambda1() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/smart/Lambda1.kt");
|
||||
|
||||
Reference in New Issue
Block a user