We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87dd7c0 commit 34e4a6dCopy full SHA for 34e4a6d
pkg/front_end/lib/src/fasta/kernel/constant_evaluator.dart
@@ -2361,9 +2361,7 @@ class ConstantEvaluator extends RecursiveVisitor<Constant> {
2361
2362
@override
2363
Constant visitIsExpression(IsExpression node) {
2364
- // TODO(jensj): Why does this call .accept directly?
2365
- // (@askesc says it's probably an oversight)
2366
- final Constant constant = node.operand.accept(this);
+ final Constant constant = _evaluateSubexpression(node.operand);
2367
if (constant is AbortConstant) return constant;
2368
if (shouldBeUnevaluated) {
2369
return unevaluated(
0 commit comments