Introduce -opt-in stable compiler option instead of -Xopt-in

#KT-47099 Fixed
This commit is contained in:
Mikhail Glukhikh
2021-07-07 12:51:36 +03:00
committed by teamcityserver
parent 47c8bab48e
commit d8417fd622
16 changed files with 56 additions and 20 deletions
@@ -596,7 +596,7 @@ class FirDefaultErrorMessages {
map.put(EXPERIMENTAL_OVERRIDE, "{1}", TO_STRING, STRING)
map.put(EXPERIMENTAL_OVERRIDE_ERROR, "{1}", TO_STRING, STRING)
map.put(EXPERIMENTAL_IS_NOT_ENABLED, "This class can only be used with the compiler argument '-Xopt-in=kotlin.RequiresOptIn'")
map.put(EXPERIMENTAL_IS_NOT_ENABLED, "This class can only be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'")
map.put(EXPERIMENTAL_CAN_ONLY_BE_USED_AS_ANNOTATION, "This class can only be used as an annotation")
map.put(
EXPERIMENTAL_MARKER_CAN_ONLY_BE_USED_AS_ANNOTATION_OR_ARGUMENT_IN_USE_EXPERIMENTAL,