K1: Place integer cinterop conversions under a language feature

Note that it's quite hard to emit a particular diagnostic as
 type check happens later, after the conversion

 ^KT-56583
This commit is contained in:
Mikhail Zarechenskiy
2023-02-15 14:12:21 +01:00
committed by Space Team
parent 2cad26f4cc
commit 82524fde26
9 changed files with 15 additions and 10 deletions
@@ -57,7 +57,8 @@ interface CompileTimeConstant<out T> {
val isUnsignedLongNumberLiteral: Boolean,
val usesVariableAsConstant: Boolean,
val usesNonConstValAsConstant: Boolean,
// `isConvertableConstVal` means that this is `const val` that has `ImplicitIntegerCoercion` annotation
// `isConvertableConstVal` means that this is `const val` that can participate in signed to unsigned conversion
// see LanguageFeature.ImplicitSignedToUnsignedIntegerConversion
val isConvertableConstVal: Boolean
)