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

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: Comment shortened 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 e2fb1fe84be0691dc6a6c9e2e3086031c54df36f..8550b5de3723582e13e0d11a71e1d83a045b3e66 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -172,7 +172,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