Add tests for enhanced java signatures based on AbstractResolvedCallsTest.
Refactor AbstractResolvedCallsTest to support multiple carets (multiple methods being tested for resolve) in testdata file.
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
fun notNullValues(it: Iterator<String>) {
|
||||
it.<caret>forEachRemaining { e -> }
|
||||
}
|
||||
|
||||
fun mutableNullableValues(it: MutableIterator<String?>) {
|
||||
it.<caret>forEachRemaining { e -> }
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
fun notNullValues(it: Iterator<String>) {
|
||||
it.forEachRemaining { e -> }
|
||||
// SUCCESS
|
||||
// ORIGINAL: fun forEachRemaining((T) -> Unit): Unit defined in kotlin.collections.Iterator
|
||||
// SUBSTITUTED: fun forEachRemaining((String) -> Unit): Unit defined in kotlin.collections.Iterator
|
||||
}
|
||||
|
||||
fun mutableNullableValues(it: MutableIterator<String?>) {
|
||||
it.forEachRemaining { e -> }
|
||||
// SUCCESS
|
||||
// ORIGINAL: fun forEachRemaining((T) -> Unit): Unit defined in kotlin.collections.MutableIterator
|
||||
// SUBSTITUTED: fun forEachRemaining((String?) -> Unit): Unit defined in kotlin.collections.MutableIterator
|
||||
}
|
||||
Reference in New Issue
Block a user