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

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 10879003: Const variables handled as final (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index 4e4c74d73c89f3cdec77ea935a97eaeac7ff11ed..c9be3c0c529713399288e1671a553ffcb487e6a8 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -169,7 +169,7 @@ class Element implements Hashable {
}
bool isAssignable() {
- if (modifiers != null && modifiers.isFinal()) return false;
+ if (modifiers != null && modifiers.isFinalOrConst()) return false;
if (isFunction() || isGenerativeConstructor()) return false;
return true;
}

Powered by Google App Engine
This is Rietveld 408576698