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 cf2674f commit 5e9f375Copy full SHA for 5e9f375
compiler/src/dmd/parse.d
@@ -1319,7 +1319,21 @@ class Parser(AST, Lexer = dmd.lexer.Lexer) : Lexer
1319
1320
// Allow identifier, template instantiation, or function call
1321
// for `@Argument` (single UDA) form.
1322
- AST.Expression exp = parsePrimaryExp();
+ AST.Expression exp;
1323
+
1324
+ {
1325
+ const loc = token.loc;
1326
+ Identifier id = token.ident;
1327
+ nextToken();
1328
+ if (token.value == TOK.not)
1329
1330
+ auto tempinst = new AST.TemplateInstance(loc, id, parseTemplateArguments());
1331
+ exp = new AST.ScopeExp(loc, tempinst);
1332
+ }
1333
+ else
1334
+ exp = new AST.IdentifierExp(loc, id);
1335
1336
1337
if (token.value == TOK.leftParenthesis)
1338
{
1339
const loc = token.loc;
0 commit comments