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

Unified Diff: tests/language/cast_test.dart

Issue 11125005: Support for type dynamic in VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « tests/language/cast2_test.dart ('k') | tests/language/closure_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/cast_test.dart
===================================================================
--- tests/language/cast_test.dart (revision 13630)
+++ tests/language/cast_test.dart (working copy)
@@ -42,12 +42,12 @@
(on as Object).toString();
(oc as Object).toString();
(od as Object).toString();
- (on as Dynamic).toString();
- (on as Dynamic).foo; /// 07: runtime error
- (oc as Dynamic).foo;
- (od as Dynamic).foo;
- (oc as Dynamic).bar; /// 08: runtime error
- (od as Dynamic).bar;
+ (on as dynamic).toString();
+ (on as dynamic).foo; /// 07: runtime error
+ (oc as dynamic).foo;
+ (od as dynamic).foo;
+ (oc as dynamic).bar; /// 08: runtime error
+ (od as dynamic).bar;
C c = oc as C;
c = od as C;
c = oc;
@@ -57,13 +57,13 @@
(ol as List)[0];
(ol as List<int>)[0];
- (ol as Dynamic)[0];
+ (ol as dynamic)[0];
(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;
+ (os as dynamic).length;
(oi as String).length; /// 13: runtime error
(os as List).length; /// 14: runtime error
« no previous file with comments | « tests/language/cast2_test.dart ('k') | tests/language/closure_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698