Index: pkg/front_end/lib/src/fasta/parser/parser.dart |
diff --git a/pkg/front_end/lib/src/fasta/parser/parser.dart b/pkg/front_end/lib/src/fasta/parser/parser.dart |
index 42c8f456f4cbb2b5f8d090e106360e994ac9c1cf..489ecd44e5a6055ba63885207cf394157d1977f0 100644 |
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart |
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart |
@@ -44,6 +44,7 @@ import '../fasta_codes.dart' |
codeInvalidInlineFunctionType, |
codeInvalidSyncModifier, |
codeInvalidVoid, |
+ codeMetadataTypeArguments, |
codeNoFormals, |
codeNonAsciiIdentifier, |
codeNonAsciiWhitespace, |
@@ -590,6 +591,9 @@ class Parser { |
token = parseIdentifier(token.next, IdentifierContext.metadataReference); |
token = |
parseQualifiedRestOpt(token, IdentifierContext.metadataContinuation); |
+ if (optional("<", token)) { |
+ reportRecoverableErrorCode(token, codeMetadataTypeArguments); |
+ } |
token = parseTypeArgumentsOpt(token); |
Token period = null; |
if (optional('.', token)) { |