| Index: sdk/lib/_internal/compiler/implementation/tree_validator.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/tree_validator.dart b/sdk/lib/_internal/compiler/implementation/tree_validator.dart
|
| index 399ad60ed6ea70ac4bca52bdfcc74b36ce7b46aa..e3dfcc9aec098c39e6d97957c192b29bf97c6297 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/tree_validator.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/tree_validator.dart
|
| @@ -58,7 +58,7 @@ class ValidatorVisitor extends Visitor {
|
| }
|
|
|
| visitReturn(Return node) {
|
| - if (!node.isRedirectingFactoryBody && node.hasExpression) {
|
| + if (node.hasExpression) {
|
| // We allow non-expression expressions in Return nodes, but only when
|
| // using them to hold redirecting factory constructors.
|
| expect(node, node.expression.asExpression() != null);
|
|
|