@@ -13,7 +13,7 @@ void main() {
13
13
test ();
14
14
}
15
15
16
- void test < S extends Set < num >, I extends Iterable < num >> () {
16
+ void test () {
17
17
checkSet <T >(Object o, List elements) {
18
18
Expect .type <LinkedHashSet <T >>(o);
19
19
Set <T > set = o;
@@ -24,8 +24,6 @@ void test<S extends Set<num>, I extends Iterable<num>>() {
24
24
Object iterableContext <T >(Iterable <T > object) => object;
25
25
Object foSetContext <T >(FutureOr <Set <T >> object) => object;
26
26
Object foIterableContext <T >(FutureOr <Iterable <T >> object) => object;
27
- Object sContext (S object) => object;
28
- Object iContext (I object) => object;
29
27
30
28
// Empty literal, no type arguments.
31
29
// No context.
@@ -40,8 +38,6 @@ void test<S extends Set<num>, I extends Iterable<num>>() {
40
38
checkSet <int >(iterableContext <int >({}), []);
41
39
checkSet <int >(foSetContext <int >({}), []);
42
40
checkSet <int >(foIterableContext <int >({}), []);
43
- checkSet <num >(sContext ({}), []);
44
- checkSet <num >(iContext ({}), []);
45
41
46
42
// Non-empty set literal, no type argument.
47
43
// No context.
@@ -61,14 +57,10 @@ void test<S extends Set<num>, I extends Iterable<num>>() {
61
57
checkSet <num >(iterableContext <num >({1 }), [1 ]);
62
58
checkSet <num >(foSetContext <num >({1 }), [1 ]);
63
59
checkSet <num >(foIterableContext <num >({1 }), [1 ]);
64
- checkSet <num >(sContext ({1 }), [1 ]);
65
- checkSet <num >(iContext ({1 }), [1 ]);
66
60
checkSet <num >(setContext <num >({3 , 1 , 2 , 4 , 1 , 4 }), [3 , 1 , 2 , 4 ]);
67
61
checkSet <num >(iterableContext <num >({3 , 1 , 2 , 4 , 1 , 4 }), [3 , 1 , 2 , 4 ]);
68
62
checkSet <num >(foSetContext <num >({3 , 1 , 2 , 4 , 1 , 4 }), [3 , 1 , 2 , 4 ]);
69
63
checkSet <num >(foIterableContext <num >({3 , 1 , 2 , 4 , 1 , 4 }), [3 , 1 , 2 , 4 ]);
70
- checkSet <num >(sContext ({3 , 1 , 2 , 4 , 1 , 4 }), [3 , 1 , 2 , 4 ]);
71
- checkSet <num >(iContext ({3 , 1 , 2 , 4 , 1 , 4 }), [3 , 1 , 2 , 4 ]);
72
64
73
65
// Non-empty set literal with type argument.
74
66
checkSet <num >(< num > {1 }, [1 ]);
0 commit comments