We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6a1cc3 commit fdeb700Copy full SHA for fdeb700
source/parse.h
@@ -6709,14 +6709,24 @@ class parser
6709
//G alt-name? is-value-constraint '=' statement
6710
//G alt-name? as-type-cast '=' statement
6711
//G
6712
- //G alt-name:
+ //GTODO alt-name:
6713
//G unqualified-id ':'
6714
6715
auto alternative()
6716
-> std::unique_ptr<alternative_node>
6717
{
6718
auto n = std::make_unique<alternative_node>();
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
+
6730
// Now we should be as "is" or "as"
6731
// (initial partial implementation, just "is/as id-expression")
6732
if (
0 commit comments