Added test for 'typealias' being keyword

This commit is contained in:
Valentin Kipyatkov
2016-01-19 15:53:13 +03:00
parent 68853fecc3
commit 808c7453a4
3 changed files with 23 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
val typealias = 0
+16
View File
@@ -0,0 +1,16 @@
JetFile: TypealiasIsKeyword.kt
PACKAGE_DIRECTIVE
<empty list>
IMPORT_LIST
<empty list>
PROPERTY
PsiElement(val)('val')
PsiErrorElement:Expecting property name or receiver type
<empty list>
PsiWhiteSpace(' ')
PsiErrorElement:Property getter or setter expected
PsiElement(typealias)('typealias')
PsiWhiteSpace(' ')
PsiElement(EQ)('=')
PsiWhiteSpace(' ')
PsiElement(INTEGER_LITERAL)('0')