Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1315)

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/typechecker.dart

Issue 11230007: Resolve redirecting factories. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dart/sdk/lib/_internal/compiler/implementation/typechecker.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/typechecker.dart b/dart/sdk/lib/_internal/compiler/implementation/typechecker.dart
index d9c27fff02b9fcffd8d242764a2d94f4c48587fd..6ba70f0676f526d2dfea4d7518077e01f74b2d71 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/typechecker.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/typechecker.dart
@@ -796,7 +796,7 @@ class TypeCheckerVisitor implements Visitor<DartType> {
if (node.isRedirectingFactoryBody) {
// TODO(lrn): Typecheck the body. It must refer to the constructor
// of a subtype.
- return elements.getType(node);
+ return StatementType.RETURNING;
}
final expression = node.expression;

Powered by Google App Engine
This is Rietveld 408576698