From 931779f1c668094b00e5ec83db6678db71794fa3 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Tue, 19 Oct 2021 16:23:29 +0300 Subject: [PATCH] Fix OPT_IN_IS_NO_ENABLED message (see KT-48534) --- .../kotlin/diagnostics/rendering/DefaultErrorMessages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/rendering/DefaultErrorMessages.java b/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/rendering/DefaultErrorMessages.java index c39764f14c2..8a41f22ca8b 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/rendering/DefaultErrorMessages.java +++ b/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/rendering/DefaultErrorMessages.java @@ -165,7 +165,7 @@ public class DefaultErrorMessages { MAP.put(OPT_IN_OVERRIDE, "{1}", TO_STRING, STRING); MAP.put(OPT_IN_OVERRIDE_ERROR, "{1}", TO_STRING, STRING); - MAP.put(OPT_IN_IS_NOT_ENABLED, "This class can only be used with the compiler argument '-Xopt-in=kotlin.RequiresOptIn'"); + MAP.put(OPT_IN_IS_NOT_ENABLED, "This class can only be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'"); MAP.put(OPT_IN_CAN_ONLY_BE_USED_AS_ANNOTATION, "This class can only be used as an annotation"); MAP.put(OPT_IN_MARKER_CAN_ONLY_BE_USED_AS_ANNOTATION_OR_ARGUMENT_IN_OPT_IN, "This class can only be used as an annotation or as an argument to @OptIn");