Skip to content

Commit 2a6a0cf

Browse files
bwilkersonwhesse
authored andcommitted
1 parent 4cbd077 commit 2a6a0cf

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pkg/analyzer/lib/src/generated/parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5729,7 +5729,7 @@ class Parser {
57295729
} else if (_tokenMatches(next, TokenType.GT)) {
57305730
depth--;
57315731
if (depth == 0) {
5732-
return next;
5732+
return next.next;
57335733
}
57345734
}
57355735
previous = next;

pkg/analyzer/test/generated/parser_test.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11363,6 +11363,13 @@ Function(int, String) v;
1136311363
listener.assertNoErrors();
1136411364
}
1136511365

11366+
void test_parseNonLabeledStatement_variableDeclaration_gftType_returnType() {
11367+
createParser('int Function<T>() v;');
11368+
Statement statement = parser.parseNonLabeledStatement();
11369+
expectNotNullIfNoErrors(statement);
11370+
listener.assertNoErrors();
11371+
}
11372+
1136611373
void test_parseOptionalReturnType() {
1136711374
// TODO(brianwilkerson) Implement tests for this method.
1136811375
}

0 commit comments

Comments
 (0)