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

Unified Diff: tests/language_strong/malbounded_type_cast_test.dart

Issue 2765893003: Fix warnings_checker.dart handling of multitests (Closed)
Patch Set: 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/language_strong/malbounded_type_cast_test.dart
diff --git a/tests/language_strong/malbounded_type_cast_test.dart b/tests/language_strong/malbounded_type_cast_test.dart
index 4bdcb665058702a6fe701673f83bc2cc49d05265..b3d55214f109084d4b46b6071e3770924b6ba3ed 100644
--- a/tests/language_strong/malbounded_type_cast_test.dart
+++ b/tests/language_strong/malbounded_type_cast_test.dart
@@ -5,13 +5,13 @@
import 'package:expect/expect.dart';
class Super<T extends num> {}
-class Malbounded1 implements Super<String> {} // /// static type warning
-class Malbounded2 extends Super<String> {} // /// static type warning
+class Malbounded1 implements Super<String> {} // //# static type warning
+class Malbounded2 extends Super<String> {} // //# static type warning
main() {
bool inCheckedMode = false;
try {
- String a = 42; /// static type warning
+ String a = 42; //# static type warning
} catch (e) {
inCheckedMode = true;
}
@@ -28,5 +28,5 @@ main() {
var s = new Super<int>();
Expect.throws(() => s as Malbounded1, (e) => e is CastError);
Expect.throws(() => s as Malbounded2, expectedError);
- Expect.throws(() => s as Super<String>, expectedError); /// static type warning
+ Expect.throws(() => s as Super<String>, expectedError); //# static type warning
}
« no previous file with comments | « tests/language_strong/malbounded_type_cast2_test.dart ('k') | tests/language_strong/malbounded_type_test2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698