Fix PSI behavior for "val x : ()?' case

This commit is contained in:
Andrey Breslav
2014-03-25 14:04:23 +04:00
parent 6725b4f1b0
commit 80737bdfcf
9 changed files with 50 additions and 8 deletions
+1
View File
@@ -0,0 +1 @@
val x: ()? = 1
+21
View File
@@ -0,0 +1,21 @@
JetFile: AbsentInnerType.kt
PACKAGE_DIRECTIVE
<empty list>
PROPERTY
PsiElement(val)('val')
PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('x')
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
TYPE_REFERENCE
NULLABLE_TYPE
PsiElement(LPAR)('(')
PsiErrorElement:Type expected
<empty list>
PsiElement(RPAR)(')')
PsiElement(QUEST)('?')
PsiWhiteSpace(' ')
PsiElement(EQ)('=')
PsiWhiteSpace(' ')
INTEGER_CONSTANT
PsiElement(INTEGER_LITERAL)('1')