[IDE-NI-MIGRATE] Migrate QuickFix tests for new inference

This commit is contained in:
Mikhail Zarechenskiy
2019-05-06 03:35:54 +03:00
parent 871925ba31
commit d4d1648e1d
71 changed files with 77 additions and 1 deletions
@@ -12,6 +12,7 @@
// ERROR: Type inference failed: inline fun <T> Iterable<T>.firstOrNull(predicate: (T) -> Boolean): T?<br>cannot be applied to<br>receiver: Collection<List<String>> arguments: ((List<String>) -> () -> Boolean)<br>
// ERROR: Type mismatch: inferred type is (List<String>) -> () -> Boolean but (List<String>) -> Boolean was expected
// ERROR: Unresolved reference: maximumSizeOfGroup
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
fun doSomethingStrangeWithCollection(collection: Collection<String>): Collection<String>? {
val groupsByLength = collection.groupBy { s -> { s.length } }