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

Unified Diff: tests/language/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/cast_test.dart
diff --git a/tests/language/cast_test.dart b/tests/language/cast_test.dart
index 39d7f0475011089f957a710403fc90ad3732a8ff..ae23e13c5a2ff8d36e9070e78b90772f75231dfe 100644
--- a/tests/language/cast_test.dart
+++ b/tests/language/cast_test.dart
@@ -35,42 +35,42 @@ main() {
Expect.equals(42, (od as D).foo);
Expect.equals(37, (od as D).bar);
Expect.equals(37, ((od as C) as D).bar);
- (oc as D).foo; /// 01: runtime error
+ (oc as D).foo; //# 01: runtime error
(on as D).toString();
- (on as D).foo; /// 02: runtime error
- (on as C).foo; /// 03: runtime error
- oc.foo; /// 04: static type warning
- od.foo; /// 05: static type warning
+ (on as D).foo; //# 02: runtime error
+ (on as C).foo; //# 03: runtime error
+ oc.foo; //# 04: static type warning
+ od.foo; //# 05: static type warning
(on as Object).toString();
(oc as Object).toString();
(od as Object).toString();
(on as dynamic).toString();
- (on as dynamic).foo; /// 07: runtime error
+ (on as dynamic).foo; //# 07: runtime error
(oc as dynamic).foo;
(od as dynamic).foo;
- (oc as dynamic).bar; /// 08: runtime error
+ (oc as dynamic).bar; //# 08: runtime error
(od as dynamic).bar;
C c = oc as C;
c = od as C;
c = oc;
D d = od as D;
- d = oc as D; /// 10: runtime error
+ d = oc as D; //# 10: runtime error
d = od;
(ol as List)[0];
(ol as List<int>)[0];
(ol as dynamic)[0];
- (ol as String).length; /// 12: runtime error
+ (ol as String).length; //# 12: runtime error
int x = (ol as List<int>)[0];
(ol as List<int>)[0] = (oi as int);
(os as String).length;
(os as dynamic).length;
- (oi as String).length; /// 13: runtime error
- (os as List).length; /// 14: runtime error
+ (oi as String).length; //# 13: runtime error
+ (os as List).length; //# 14: runtime error
(oi as int) + 2;
- (oi as List).length; /// 15: runtime error
+ (oi as List).length; //# 15: runtime error
}

Powered by Google App Engine
This is Rietveld 408576698