Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 626cb68

Browse files
munificentcommit-bot@chromium.org
authored andcommitted
More spread test fixes.
Change-Id: I87ff7f75cbe10598f831fb969ad04ba612bd4b0c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97004 Auto-Submit: Bob Nystrom <[email protected]> Reviewed-by: Mark Zhou <[email protected]> Commit-Queue: Bob Nystrom <[email protected]>
1 parent eb6f1b6 commit 626cb68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/language_2/spread_collections/inference_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ void testTopDownInference() {
113113
Expect.setEquals(<int>{}, <int>{...expectIntSet()});
114114

115115
// Bottom up-inference from elements is not pushed back down into spread.
116-
Expect.setEquals(<int>{}, {1, ...expectDynamicSet()});
116+
Expect.setEquals(<int>{1}, {1, ...expectDynamicSet()});
117117
}

tests/language_2/spread_collections/map_set_ambiguity_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ void testBottomUpInference() {
3232
// Expect.type<...>({...dyn});
3333
Expect.type<Set<int>>({...iterable});
3434
Expect.type<Set<int>>({...customSet});
35-
Expect.type<Map<int, int>>({...customMap});
35+
Expect.type<Map<int, String>>({...customMap});
3636

3737
Expect.type<Map<int, int>>({...map, ...map});
3838
// Expect.type<...>({...map, ...set});
3939
Expect.type<Map<dynamic, dynamic>>({...map, ...dynMap});
4040
// Expect.type<...>({...map, ...iterable});
4141
// Expect.type<...>({...map, ...customSet});
42-
Expect.type<Map<int, int>>({...map, ...customMap});
42+
Expect.type<Map<int, Object>>({...map, ...customMap});
4343

4444
Expect.type<Set<int>>({...set, ...set});
4545
Expect.type<Set<dynamic>>({...set, ...dynSet});
@@ -59,7 +59,7 @@ void testBottomUpInference() {
5959
Expect.type<Set<int>>({...customSet, ...customSet});
6060
// Expect.type<...>({...customSet, ...customMap});
6161

62-
Expect.type<Map<int, int>>({...customMap, ...customMap});
62+
Expect.type<Map<int, String>>({...customMap, ...customMap});
6363
}
6464

6565
void testTopDownInference() {

0 commit comments

Comments
 (0)