Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(788)

Unified Diff: tests/lib_strong/convert/json_chunk_test.dart

Issue 2456803004: fixes #27586, prefer context type in generic inference (Closed)
Patch Set: fix Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/lib_strong/convert/json_chunk_test.dart
diff --git a/tests/lib_strong/convert/json_chunk_test.dart b/tests/lib_strong/convert/json_chunk_test.dart
index 28e92977913fe95ec8f44f3b2b1d8214d822a50b..87c4d9c80a5a8f41a926fe73bf813b9fad067a74 100644
--- a/tests/lib_strong/convert/json_chunk_test.dart
+++ b/tests/lib_strong/convert/json_chunk_test.dart
@@ -10,7 +10,7 @@ import "dart:convert";
bool badFormat(e) => e is FormatException;
jsonTest(testName, expect, action(sink)) {
- var sink = new ChunkedConversionSink.withCallback((values) {
+ var sink = new ChunkedConversionSink<dynamic>.withCallback((values) {
var value = values[0];
Expect.equals(expect, value, "$testName:$value");
});
@@ -19,7 +19,7 @@ jsonTest(testName, expect, action(sink)) {
}
jsonThrowsTest(testName, action(sink)) {
- var sink = new ChunkedConversionSink.withCallback((values) {
+ var sink = new ChunkedConversionSink<dynamic>.withCallback((values) {
Expect.fail("Should have thrown: $testName");
});
var decoderSink = JSON.decoder.startChunkedConversion(sink);

Powered by Google App Engine
This is Rietveld 408576698