Use stable order for dependsOn and related diagnostics

This commit is contained in:
Dmitry Savvinov
2019-06-14 16:15:48 +03:00
parent 769ccde43b
commit 68c1a7cedd
4 changed files with 9 additions and 6 deletions
@@ -143,7 +143,9 @@ class ExpectedActualDeclarationChecker(
trace.report(Errors.AMBIGUOUS_ACTUALS.on(
reportOn,
descriptor,
atLeastWeaklyCompatibleActuals.map { DescriptorUtils.getContainingSourceFile(it).let { it.name ?: it.toString() } }
atLeastWeaklyCompatibleActuals
.map { DescriptorUtils.getContainingSourceFile(it).let { it.name ?: it.toString() } }
.sorted()
))
}
}
@@ -304,6 +306,7 @@ class ExpectedActualDeclarationChecker(
.map { (_, members) -> members }
.flatten()
.map { DescriptorUtils.getContainingSourceFile(it).let { it.name ?: it.toString() } }
.sorted()
.toList()
if (filesWithAtLeastWeaklyCompatibleExpects.size > 1) {