Added parser test for function with initializer.

This commit is contained in:
Stanislav Erokhin
2015-03-13 20:25:58 +03:00
parent 446816e3db
commit 7a8341d0f1
4 changed files with 31 additions and 2 deletions
+14
View File
@@ -290,4 +290,18 @@ JetFile: Functions_ERR.kt
PsiWhiteSpace(' ')
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('a')
PsiElement(SEMICOLON)(';')
PsiWhiteSpace('\n')
FUN
PsiElement(fun)('fun')
PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('foo')
VALUE_PARAMETER_LIST
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiElement(EQ)('=')
PsiErrorElement:Expecting an expression
<empty list>
PsiWhiteSpace(' ')
PsiElement(SEMICOLON)(';')