mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:07:49 +00:00
Fix typing for lookup-map test.
Review-Url: https://codereview.chromium.org/2713203002 .
This commit is contained in:
parent
97062168e4
commit
37b7a1ac9c
|
@ -29,14 +29,14 @@ main() {
|
|||
});
|
||||
|
||||
test('pair constructor', () {
|
||||
var m = const LookupMap.pair(A, "the-text-for-A");
|
||||
var m = const LookupMap<dynamic, String>.pair(A, "the-text-for-A");
|
||||
expect(m[A], 'the-text-for-A');
|
||||
expect(m[B], null);
|
||||
});
|
||||
|
||||
test('nested lookup', () {
|
||||
var m = const LookupMap(const [],
|
||||
const [const LookupMap.pair(A, "the-text-for-A")]);
|
||||
const [const LookupMap<dynamic, String>.pair(A, "the-text-for-A")]);
|
||||
expect(m[A], 'the-text-for-A');
|
||||
expect(m[B], null);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue