Typo fixed in a diagnostic message
This commit is contained in:
@@ -1220,7 +1220,7 @@ public class JetExpressionParsing extends AbstractJetParsing {
|
||||
|
||||
myBuilder.restoreNewlinesState();
|
||||
|
||||
expect(RPAR, "Expecting ')", TokenSet.create(ARROW, COLON));
|
||||
expect(RPAR, "Expecting ')'", TokenSet.create(ARROW, COLON));
|
||||
list.done(VALUE_PARAMETER_LIST);
|
||||
}
|
||||
|
||||
|
||||
@@ -1262,7 +1262,7 @@ public class JetParsing extends AbstractJetParsing {
|
||||
|
||||
myExpressionParsing.parseStatements();
|
||||
|
||||
expect(RBRACE, "Expecting '}");
|
||||
expect(RBRACE, "Expecting '}'");
|
||||
myBuilder.restoreNewlinesState();
|
||||
|
||||
block.done(BLOCK);
|
||||
|
||||
@@ -32,7 +32,7 @@ JetFile: FunctionLiterals_ERR.kt
|
||||
PsiElement(LPAR)('(')
|
||||
VALUE_PARAMETER
|
||||
PsiElement(IDENTIFIER)('a')
|
||||
PsiErrorElement:Expecting ')
|
||||
PsiErrorElement:Expecting ')'
|
||||
<empty list>
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(ARROW)('->')
|
||||
@@ -317,7 +317,7 @@ JetFile: FunctionLiterals_ERR.kt
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('b')
|
||||
PsiErrorElement:Expecting ')
|
||||
PsiErrorElement:Expecting ')'
|
||||
<empty list>
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(ARROW)('->')
|
||||
@@ -387,5 +387,5 @@ JetFile: FunctionLiterals_ERR.kt
|
||||
BLOCK
|
||||
<empty list>
|
||||
PsiElement(RBRACE)('}')
|
||||
PsiErrorElement:Expecting '}
|
||||
PsiErrorElement:Expecting '}'
|
||||
<empty list>
|
||||
@@ -1,5 +1,5 @@
|
||||
fun main(args: Array<String>) {
|
||||
String.class
|
||||
<error descr="Name expected">}</error><EOLError descr="Expecting '}"></EOLError>
|
||||
<error descr="Name expected">}</error><EOLError descr="Expecting '}'"></EOLError>
|
||||
|
||||
// EA-56152: An attempt to build light class in checker to get diagnotics
|
||||
Reference in New Issue
Block a user