Parse type arguments after callable reference as error

Is likely to be supported in the future
This commit is contained in:
Alexander Udalov
2015-10-15 12:15:27 +03:00
parent 32a9bddbf9
commit 66417ed329
4 changed files with 104 additions and 2 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ postfixUnaryExpression
// TODO: callSuffix is forbidden after callableReference, since parentheses will be used to provide parameter types
callableReference
: (userType "?"*)? "::" SimpleName
: (userType "?"*)? "::" SimpleName typeArguments?
;
// !!! When you add here, remember to update the FIRST set in the parser