Files
kotlin-fork/compiler/testData/resolvedCalls/enhancedSignatures/list/listStream.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.5 KiB
Plaintext
Vendored

fun <E : CharSequence> notNullValues(collection: List<E>) {
collection.stream()
// SUCCESS
// ORIGINAL: fun stream(): Stream<E> defined in kotlin.collections.List
// SUBSTITUTED: fun stream(): Stream<E> defined in kotlin.collections.List
collection.parallelStream()
// SUCCESS
// ORIGINAL: fun parallelStream(): Stream<E> defined in kotlin.collections.List
// SUBSTITUTED: fun parallelStream(): Stream<E> defined in kotlin.collections.List
}
fun <E : CharSequence> nullableValues(collection: List<E?>) {
collection.stream()
// SUCCESS
// ORIGINAL: fun stream(): Stream<E> defined in kotlin.collections.List
// SUBSTITUTED: fun stream(): Stream<E?> defined in kotlin.collections.List
collection.parallelStream()
// SUCCESS
// ORIGINAL: fun parallelStream(): Stream<E> defined in kotlin.collections.List
// SUBSTITUTED: fun parallelStream(): Stream<E?> defined in kotlin.collections.List
}
fun <E : CharSequence?> nullableValues2(collection: List<E>) {
collection.stream()
// SUCCESS
// ORIGINAL: fun stream(): Stream<E> defined in kotlin.collections.List
// SUBSTITUTED: fun stream(): Stream<E> defined in kotlin.collections.List
collection.parallelStream()
// SUCCESS
// ORIGINAL: fun parallelStream(): Stream<E> defined in kotlin.collections.List
// SUBSTITUTED: fun parallelStream(): Stream<E> defined in kotlin.collections.List
}