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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 15023019: Fix bug in checked mode: we need to register super fields as well, because the super class might no… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 | « no previous file | tests/language/checked_setter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (revision 22771)
+++ sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (working copy)
@@ -1133,11 +1133,11 @@
if (compiler.enableTypeAssertions) {
// We need to register is checks for assignments to fields.
- cls.forEachLocalMember((Element member) {
+ cls.forEachMember((Element enclosing, Element member) {
if (!member.isInstanceMember() || !member.isField()) return;
DartType type = member.computeType(compiler);
enqueuer.registerIsCheck(type, elements);
- });
+ }, includeSuperMembers: true);
}
}
« no previous file with comments | « no previous file | tests/language/checked_setter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698