Skip to content

Commit b124216

Browse files
committed
address strict_top_level_inference diagnostics
1 parent c667b72 commit b124216

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

pkgs/collection/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
`Map.entries`.
55
- Optimize equality and hash code for maps by using `update` and a `values`
66
iterator to avoid extra lookups.
7+
- Address diagnostics from `strict_top_level_inference`.
78

89
## 1.19.1
910

pkgs/collection/lib/src/unmodifiable_wrappers.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,4 @@ abstract mixin class UnmodifiableMapMixin<K, V> implements Map<K, V> {
193193
/// operations that change the map are disallowed.
194194
@override
195195
void clear() => _throw();
196-
197-
/// Throws an [UnsupportedError];
198-
/// operations that change the map are disallowed.
199-
set first(_) => _throw();
200-
201-
/// Throws an [UnsupportedError];
202-
/// operations that change the map are disallowed.
203-
set last(_) => _throw();
204196
}

pkgs/collection/test/extensions_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2225,7 +2225,7 @@ Iterable<T> iterable<T>(Iterable<T> values) sync* {
22252225
yield* values;
22262226
}
22272227

2228-
Never unreachable([_, __, ___]) => fail('Unreachable');
2228+
Never unreachable([dynamic _, dynamic __, dynamic ___]) => fail('Unreachable');
22292229

22302230
String toString(Object? o) => '$o';
22312231

0 commit comments

Comments
 (0)