Fix typing for lookup-map test.

Review-Url: https://codereview.chromium.org/2713203002 .
This commit is contained in:
Florian Loitsch 2017-02-24 15:58:09 +01:00
parent 97062168e4
commit 37b7a1ac9c

View file

@ -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);
});