Skip to content

Commit bbf2eef

Browse files
committed
Make analyzer happy
TBR Review URL: https://codereview.chromium.org//1006033004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44705 260f80e4-7a28-3924-810f-c04153c831b5
1 parent 14ddfb7 commit bbf2eef

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/language/regress_22936_test.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ foo() {
1515

1616
main() {
1717
final x = null;
18-
bool assignmentFailed = false;
1918
try {
20-
x = foo();
19+
x = /// 01: static type warning
20+
foo();
2121
} on NoSuchMethodError {
22-
assignmentFailed = true;
2322
}
2423
Expect.isTrue(fooCalled);
25-
Expect.isTrue(assignmentFailed);
2624
}

0 commit comments

Comments
 (0)