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

Unified Diff: pkg/analysis_server/test/services/refactoring/extract_method_test.dart

Issue 2903523003: Switch server tests to strong mode. (Closed)
Patch Set: Created 3 years, 7 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/services/refactoring/extract_method_test.dart
diff --git a/pkg/analysis_server/test/services/refactoring/extract_method_test.dart b/pkg/analysis_server/test/services/refactoring/extract_method_test.dart
index a20564ba7ede168847b77fcfff917f9dd04b0177..841a83ebf2b6e81e78c020bb118f71868031d2bf 100644
--- a/pkg/analysis_server/test/services/refactoring/extract_method_test.dart
+++ b/pkg/analysis_server/test/services/refactoring/extract_method_test.dart
@@ -894,7 +894,7 @@ main(int k) {
await indexTestUnit('''
var X = 1;
-var Y = () {
+dynamic Y = () {
return 1 + X;
};
''');
@@ -903,11 +903,11 @@ var Y = () {
return _assertSuccessfulRefactoring('''
var X = 1;
-var Y = () {
+dynamic Y = () {
return res();
};
-num res() => 1 + X;
+int res() => 1 + X;
''');
}

Powered by Google App Engine
This is Rietveld 408576698