0-ary tuples

This commit is contained in:
Andrey Breslav
2011-01-03 13:27:40 +03:00
parent 4d4e9cc342
commit e2fca30f22
6 changed files with 49 additions and 18 deletions
+1
View File
@@ -1,5 +1,6 @@
fun a(
a : foo = (),
a : foo = 10,
a : foo = 0x10,
a : foo = '1',
+16
View File
@@ -9,6 +9,22 @@ JetFile: SimpleExpressions.jet
VALUE_PARAMETER_LIST
PsiElement(LPAR)('(')
PsiWhiteSpace('\n ')
VALUE_PARAMETER
PsiElement(IDENTIFIER)('a')
PsiWhiteSpace(' ')
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
TYPE_REFERENCE
USER_TYPE
PsiElement(IDENTIFIER)('foo')
PsiWhiteSpace(' ')
PsiElement(EQ)('=')
PsiWhiteSpace(' ')
TUPLE
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiElement(COMMA)(',')
PsiWhiteSpace('\n ')
VALUE_PARAMETER
PsiElement(IDENTIFIER)('a')
PsiWhiteSpace(' ')