Files
kotlin-fork/compiler/testData/resolvedCalls/enhancedSignatures/collection/collectionStream.txt
T
Ilya Gorbunov 84a7e3c032 Add tests for enhanced java signatures based on AbstractResolvedCallsTest.
Refactor AbstractResolvedCallsTest to support multiple carets (multiple methods being tested  for resolve) in testdata file.
2016-12-08 20:22:17 +03:00

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
}