KT-41859 Place classes after typealiases in DeserializedMemberScope

This way, the order in stubs and in deserialized text would be the same

On the next stub version bump, this fix should be reworked: the order
in the `DeserializedMemberScope` should be restored, and the order in
the stubs should be fixed to match the order in `MemberComparator`

^KT-41859 Fixed
This commit is contained in:
Roman Golyshev
2020-09-15 15:16:07 +03:00
parent cfd62c15bf
commit 945edfe987
5 changed files with 39 additions and 10 deletions
@@ -219,6 +219,7 @@ private class ClassClsStubBuilder(
}
}
// FIXME using this function breaks the order of `MemberComparator` (see KT-41859)
createDeclarationsStubs(
classBody, c, thisAsProtoContainer, classProto.functionList, classProto.propertyList, classProto.typeAliasList
)