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

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

Issue 10855174: Lazy implementation of final variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase wrt CL 10832351. 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 778084f1ac497624543c7427eeb4448360e779c7..a7cb8870807abf14bb605244920c5fe5c071fef0 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