Skip to content

Commit c166672

Browse files
KvanTTTSpace Team
authored andcommitted
[Language] Convert local type aliases to experimental feature and fix its flags
1 parent 6b0e7a5 commit c166672

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
/topLevelTypeAliasesOnly.kt:7:5: error: nested and local type aliases are not supported
1+
/topLevelTypeAliasesOnly.kt:8:5: error: nested and local type aliases are not supported
22
typealias Nested = Any
33
^^^^^^^^^^^^^^^^^^^^^^
4-
/topLevelTypeAliasesOnly.kt:11:5: error: nested and local type aliases are not supported
4+
/topLevelTypeAliasesOnly.kt:12:5: error: nested and local type aliases are not supported
55
typealias Nested = Any
66
^^^^^^^^^^^^^^^^^^^^^^
7-
/topLevelTypeAliasesOnly.kt:13:9: error: nested and local type aliases are not supported
7+
/topLevelTypeAliasesOnly.kt:14:9: error: nested and local type aliases are not supported
88
typealias Nested = Any
99
^^^^^^^^^^^^^^^^^^^^^^
10-
/topLevelTypeAliasesOnly.kt:15:13: error: nested and local type aliases are not supported
10+
/topLevelTypeAliasesOnly.kt:16:13: error: nested and local type aliases are not supported
1111
typealias LocalInMember = Any
1212
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13-
/topLevelTypeAliasesOnly.kt:21:5: error: nested and local type aliases are not supported
13+
/topLevelTypeAliasesOnly.kt:22:5: error: nested and local type aliases are not supported
1414
typealias Local = Any
1515
^^^^^^^^^^^^^^^^^^^^^
16+

compiler/util/src/org/jetbrains/kotlin/config/LanguageVersionSettings.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ enum class LanguageFeature(
477477
JsAllowExportingSuspendFunctions(sinceVersion = KOTLIN_2_4, "KT-56281"),
478478
ForbidTypeAliasToCompilerRequiredAnnotation(KOTLIN_2_4, enabledInProgressiveMode = true, "KT-79369"),
479479
ForbidArrayLiteralsInNonAnnotationContexts(KOTLIN_2_4, enabledInProgressiveMode = true, "KTLC-369"),
480-
LocalTypeAliases(sinceVersion = KOTLIN_2_4, enabledInProgressiveMode = true, "KT-81404"),
481480
ForbidClassLiteralWithPotentiallyNullableReifiedLhs(KOTLIN_2_4, enabledInProgressiveMode = true, "KT-81385"),
482481

483482
// 2.5
@@ -543,6 +542,7 @@ enum class LanguageFeature(
543542
NameBasedDestructuring(sinceVersion = null, "KT-19627"),
544543
DeprecateNameMismatchInShortDestructuringWithParentheses(sinceVersion = null, "KT-19627"),
545544
EnableNameBasedDestructuringShortForm(sinceVersion = null, "KT-19627"),
545+
LocalTypeAliases(sinceVersion = null, forcesPreReleaseBinaries = true, issue = "KT-81404"),
546546

547547
// K1 support only. We keep it, as we may want to support it also in K2
548548
UnitConversionsOnArbitraryExpressions(sinceVersion = null, NO_ISSUE_SPECIFIED),

0 commit comments

Comments
 (0)