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

Unified Diff: pkg/analysis_server/test/protocol_test.dart

Issue 1852113002: More strong mode changes in analysis_server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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: pkg/analysis_server/test/protocol_test.dart
diff --git a/pkg/analysis_server/test/protocol_test.dart b/pkg/analysis_server/test/protocol_test.dart
index 93dde63709b9908debcdae31c9e9888191c0b4ec..6428c62020b39d0a66beecdb2cb82ef24b8ea1d2 100644
--- a/pkg/analysis_server/test/protocol_test.dart
+++ b/pkg/analysis_server/test/protocol_test.dart
@@ -266,7 +266,8 @@ class ResponseTest {
Response original = new Response('myId', result: {'foo': 'bar'});
Response response = new Response.fromJson(original.toJson());
expect(response.id, equals('myId'));
- Map<String, Object> result = response.toJson()['result'];
+ Map<String, Object> result =
+ response.toJson()['result'] as Map<String, Object>;
expect(result.length, equals(1));
expect(result['foo'], equals('bar'));
}

Powered by Google App Engine
This is Rietveld 408576698