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

Unified Diff: tests/language/field_override_test.dart

Issue 10910092: Improvements for checked mode: check when intializing fields, and when assigning to fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/isolate/isolate.status ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/field_override_test.dart
===================================================================
--- tests/language/field_override_test.dart (revision 11954)
+++ tests/language/field_override_test.dart (working copy)
@@ -29,7 +29,7 @@
main() {
SubSub val1 = new SubSub();
- val1.field = new B2(); /// 02: static type warning
+ val1.field = new B2(); /// 02: static type warning, dynamic type error
Expect.equals(true, val1.field is B2); /// 02: continued
Sub val2 = new Sub();
« no previous file with comments | « tests/isolate/isolate.status ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698