Fix type table serialization in DescriptorSerializer

Always serialize type table (and version requirement table) after
everything else, to prevent bugs like KT-51446 where inline class
underlying type was added to the type table after it has already been
serialized.

 #KT-51446 Fixed
This commit is contained in:
Alexander Udalov
2022-02-22 21:58:19 +01:00
parent c53d91bae1
commit b443848ea0
11 changed files with 78 additions and 54 deletions
@@ -77,6 +77,7 @@ object LanguageSettingsDirectives : SimpleDirectivesContainer() {
val DISABLE_CALL_ASSERTIONS by directive("Disable assertions on calls")
val NO_UNIFIED_NULL_CHECKS by directive("No unified null checks")
val PARAMETERS_METADATA by directive("Add parameters metadata for 1.8 reflection")
val USE_TYPE_TABLE by directive("Use type table in metadata serialization")
// --------------------- Utils ---------------------