Prohibit non-const expressions through varargs in annotations
Fixes #KT-23153 for Kotlin 1.3 The problem was in the type check of expression type against expected type. When feature `AssigningArraysToVarargsInNamedFormInAnnotations` (KT-20171) appeared, expected type could be wrong, which led to failed type check
This commit is contained in:
@@ -67,6 +67,7 @@ enum class LanguageFeature(
|
||||
JvmStaticInInterface(KOTLIN_1_3),
|
||||
InlineClasses(KOTLIN_1_3),
|
||||
ProhibitVisibilityOfNestedClassifiersFromSupertypesOfCompanion(KOTLIN_1_3),
|
||||
ProhibitNonConstValuesAsVarargsInAnnotations(KOTLIN_1_3),
|
||||
|
||||
StrictJavaNullabilityAssertions(sinceVersion = null, defaultState = State.DISABLED),
|
||||
ProperIeee754Comparisons(sinceVersion = null, defaultState = State.DISABLED),
|
||||
|
||||
Reference in New Issue
Block a user