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

Unified Diff: tests/language/malbounded_type_cast_test.dart

Issue 2765693002: Update all tests (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/malbounded_type_cast_test.dart
diff --git a/tests/language/malbounded_type_cast_test.dart b/tests/language/malbounded_type_cast_test.dart
index e072110bf52f02f1661415410d07be5d8f2af2bc..c1cef5efa24946d8c1c3890c3c1bf2fd38d33f43 100644
--- a/tests/language/malbounded_type_cast_test.dart
+++ b/tests/language/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
}

Powered by Google App Engine
This is Rietveld 408576698