84a7e3c032
Refactor AbstractResolvedCallsTest to support multiple carets (multiple methods being tested for resolve) in testdata file.
33 lines
1.6 KiB
Plaintext
Vendored
33 lines
1.6 KiB
Plaintext
Vendored
fun <E : CharSequence> notNullValues(collection: Collection<E>) {
|
|
collection.stream()
|
|
// SUCCESS
|
|
// ORIGINAL: fun stream(): Stream<E> defined in kotlin.collections.Collection
|
|
// SUBSTITUTED: fun stream(): Stream<E> defined in kotlin.collections.Collection
|
|
collection.parallelStream()
|
|
// SUCCESS
|
|
// ORIGINAL: fun parallelStream(): Stream<E> defined in kotlin.collections.Collection
|
|
// SUBSTITUTED: fun parallelStream(): Stream<E> defined in kotlin.collections.Collection
|
|
}
|
|
|
|
fun <E : CharSequence> nullableValues(collection: Collection<E?>) {
|
|
collection.stream()
|
|
// SUCCESS
|
|
// ORIGINAL: fun stream(): Stream<E> defined in kotlin.collections.Collection
|
|
// SUBSTITUTED: fun stream(): Stream<E?> defined in kotlin.collections.Collection
|
|
collection.parallelStream()
|
|
// SUCCESS
|
|
// ORIGINAL: fun parallelStream(): Stream<E> defined in kotlin.collections.Collection
|
|
// SUBSTITUTED: fun parallelStream(): Stream<E?> defined in kotlin.collections.Collection
|
|
}
|
|
|
|
fun <E : CharSequence?> nullableValues2(collection: Collection<E>) {
|
|
collection.stream()
|
|
// SUCCESS
|
|
// ORIGINAL: fun stream(): Stream<E> defined in kotlin.collections.Collection
|
|
// SUBSTITUTED: fun stream(): Stream<E> defined in kotlin.collections.Collection
|
|
collection.parallelStream()
|
|
// SUCCESS
|
|
// ORIGINAL: fun parallelStream(): Stream<E> defined in kotlin.collections.Collection
|
|
// SUBSTITUTED: fun parallelStream(): Stream<E> defined in kotlin.collections.Collection
|
|
}
|