Skip to content

Commit cd3b34f

Browse files
johnniwinthercommit-bot@chromium.org
authored andcommitted
[cfe] Don't expect external field to have no initializer
Change-Id: I146eff333466683b4375212397f6b54c8ff72aa9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109262 Reviewed-by: Aske Simon Christensen <askesc@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
1 parent 7e486ef commit cd3b34f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/front_end/lib/src/fasta/kernel/constant_evaluator.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,10 +1588,6 @@ class ConstantEvaluator extends RecursiveVisitor<Constant> {
15881588
final Member target = node.target;
15891589
if (target is Field) {
15901590
if (target.isConst) {
1591-
if (target.isInExternalLibrary && target.initializer == null) {
1592-
// The variable is unavailable due to separate compilation.
1593-
return unevaluated(node, new StaticGet(target));
1594-
}
15951591
return runInsideContext(target, () {
15961592
return _evaluateSubexpression(target.initializer);
15971593
});

0 commit comments

Comments
 (0)