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 61e9506ee85292badebb4c7b7777e84946fbe566..deb86f89dd882089b397436f05b859962a81ff0b 100644 |
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart |
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart |
@@ -51,6 +51,7 @@ import '../fasta_codes.dart' |
codeRequiredParameterWithDefault, |
codeSetterNotSync, |
codeStackOverflow, |
+ codeSuperNullAware, |
codeTypeAfterVar, |
codeTypeRequired, |
codeUnexpectedToken, |
@@ -3057,6 +3058,8 @@ class Parser { |
listener.handleNoTypeArguments(token); |
token = parseArguments(token); |
listener.endSend(beginToken, token); |
+ } else if (optional("?.", token)) { |
+ reportRecoverableErrorCode(token, codeSuperNullAware); |
} |
return token; |
} |