From 407815449a001cbe54c7d269b4491978b42b5900 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Mon, 13 Feb 2017 11:59:11 +0300 Subject: [PATCH] Minor, improve error message --- .../frontend/src/org/jetbrains/kotlin/psi/psiUtil/ktPsiUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/frontend/src/org/jetbrains/kotlin/psi/psiUtil/ktPsiUtil.kt b/compiler/frontend/src/org/jetbrains/kotlin/psi/psiUtil/ktPsiUtil.kt index 450a8d378fd..49d7838e05d 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/psi/psiUtil/ktPsiUtil.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/psi/psiUtil/ktPsiUtil.kt @@ -468,7 +468,7 @@ fun checkReservedYield(expression: KtSimpleNameExpression?, sink: DiagnosticSink val identifier = expression.getIdentifier() ?: return if (identifier.node.elementType == KtTokens.IDENTIFIER && "yield" == identifier.text) { - sink.report(Errors.YIELD_IS_RESERVED.on(identifier, "Identifier 'yield' is reserved. You ca call it via `yield`")) + sink.report(Errors.YIELD_IS_RESERVED.on(identifier, "Identifier 'yield' is reserved. Use backticks to call it: `yield`")) } }