Remove the typeSynonyms feature flag in the engine (#18354)

This commit is contained in:
Paul Brauner 2024-02-07 17:03:53 +01:00 committed by GitHub
parent ef2d327de7
commit b89a274c90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View File

@ -244,9 +244,7 @@ private[archive] class DecodeV2(minor: LV.Minor) {
val exceptions = mutable.ArrayBuffer[(DottedName, DefException)]()
val interfaces = mutable.ArrayBuffer[(DottedName, DefInterface)]()
if (versionIsOlderThan(LV.Features.typeSynonyms)) {
assertEmpty(lfModule.getSynonymsList, "Module.synonyms")
} else if (!onlySerializableDataDefs) {
if (!onlySerializableDataDefs) {
// collect type synonyms
lfModule.getSynonymsList.asScala
.foreach { defn =>

View File

@ -51,7 +51,6 @@ object LanguageVersion {
val default = v2_1
val anyType = v2_1
val typeRep = v2_1
val typeSynonyms = v2_1
val packageMetadata = v2_1
val choiceObservers = v2_1
val bigNumeric = v2_1