File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -6709,14 +6709,24 @@ class parser
6709
6709
// G alt-name? is-value-constraint '=' statement
6710
6710
// G alt-name? as-type-cast '=' statement
6711
6711
// G
6712
- // G alt-name:
6712
+ // GTODO alt-name:
6713
6713
// G unqualified-id ':'
6714
6714
// G
6715
6715
auto alternative ()
6716
6716
-> std::unique_ptr<alternative_node>
6717
6717
{
6718
6718
auto n = std::make_unique<alternative_node>();
6719
6719
6720
+ if (
6721
+ curr ().type () == lexeme::Identifier
6722
+ && peek (1 )
6723
+ && peek (1 )->type () == lexeme::Colon
6724
+ )
6725
+ {
6726
+ error (" (temporary alpha limitation) declaring an identifier is not supported yet" );
6727
+ return {};
6728
+ }
6729
+
6720
6730
// Now we should be as "is" or "as"
6721
6731
// (initial partial implementation, just "is/as id-expression")
6722
6732
if (
You can’t perform that action at this time.
0 commit comments