Skip to content

Commit d045c13

Browse files
nshahancommit-bot@chromium.org
authored andcommitted
[test] Fix expected type in error message
We missed the nullable type in the expected strings during the migration. Change-Id: Ie354e89a0ba0ca1a74caaffcc41c72655c280f04 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153704 Auto-Submit: Nicholas Shahan <[email protected]> Reviewed-by: Bob Nystrom <[email protected]> Commit-Queue: Bob Nystrom <[email protected]>
1 parent 39c9473 commit d045c13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/language/unsorted/checked_method_error_order_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ main() {
3535
Expect.throws(() => new Bar().optional(i: x, a: y), (e) {
3636
if (e is TypeError) {
3737
var m = e.toString();
38-
return m.contains("is not a subtype of type 'int'") ||
38+
return m.contains("is not a subtype of type 'int?'") ||
3939
m.contains(
40-
"Expected a value of type 'int', but got one of type 'String'");
40+
"Expected a value of type 'int?', but got one of type 'String'");
4141
}
4242
return false;
4343
});

0 commit comments

Comments
 (0)