diff --git a/core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlFileBase.kt b/core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlFileBase.kt index 1021d607..aa402024 100644 --- a/core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlFileBase.kt +++ b/core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlFileBase.kt @@ -129,7 +129,7 @@ abstract class SqlFileBase( } baseContributorFile()?.contributors()?.let { contributors -> - orderedContributors[0] = linkedSetOf(*contributors.toTypedArray()) + orderedContributors[-1] = linkedSetOf(elements = contributors.toTypedArray()) } orderedContributors.forEach { (_, contributors) ->