Index: pkg/compiler/lib/src/resolution/members.dart |
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart |
index da820587dfdf602ab61e2cfac886fd15553c5ca7..1aa2d17ebba2e53bce1bfa0248507f6d225fbb42 100644 |
--- a/pkg/compiler/lib/src/resolution/members.dart |
+++ b/pkg/compiler/lib/src/resolution/members.dart |
@@ -3674,7 +3674,7 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> { |
// Specification 13.12.) |
reporter.reportErrorMessage( |
expression, |
- MessageKind.CANNOT_RETURN_FROM_CONSTRUCTOR); |
+ MessageKind.RETURN_IN_GENERATIVE_CONSTRUCTOR); |
} else if (!node.isArrowBody && currentAsyncMarker.isYielding) { |
reporter.reportErrorMessage( |
node, |