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; |
} |