Skip to content

Commit 2c244b0

Browse files
johnniwintherCommit Queue
authored andcommitted
[analyzer] Fix test expectation
This somehow slipped through the try-bot. Change-Id: I7186c6991a189d9a5085a7716bf25e134bea047a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/457761 Commit-Queue: Johnni Winther <[email protected]> Commit-Queue: Chloe Stefantsova <[email protected]> Reviewed-by: Chloe Stefantsova <[email protected]> Auto-Submit: Johnni Winther <[email protected]>
1 parent 6d70657 commit 2c244b0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

pkg/analyzer/test/src/dart/parser/class_test.dart

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,7 @@ ClassDeclaration
610610
var parseResult = parseStringWithErrors(r'''
611611
class A(final int a(String x)) {}
612612
''');
613-
// TODO(scheglov): this is wrong.
614-
parseResult.assertErrors([
615-
error(ParserErrorCode.functionTypedParameterVar, 8, 5),
616-
]);
613+
parseResult.assertNoErrors();
617614

618615
var node = parseResult.findNode.singleClassDeclaration;
619616
assertParsedNodeText(node, r'''
@@ -646,10 +643,7 @@ ClassDeclaration
646643
var parseResult = parseStringWithErrors(r'''
647644
class A(var int a(String x)) {}
648645
''');
649-
// TODO(scheglov): this is wrong.
650-
parseResult.assertErrors([
651-
error(ParserErrorCode.functionTypedParameterVar, 8, 3),
652-
]);
646+
parseResult.assertNoErrors();
653647

654648
var node = parseResult.findNode.singleClassDeclaration;
655649
assertParsedNodeText(node, r'''

0 commit comments

Comments
 (0)