From df7dda3e34895da9924a4e2e22f52bf3cdff00f3 Mon Sep 17 00:00:00 2001 From: "antonm@google.com" Date: Fri, 17 Aug 2012 11:56:11 +0000 Subject: [PATCH] .resolveTypeAnnotation now returns TypedefType, not FunctionType. R=johnniwinther@google.com Review URL: https://chromiumcodereview.appspot.com//10834390 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10887 260f80e4-7a28-3924-810f-c04153c831b5 --- .../implementation/dart_backend/placeholder_collector.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler/implementation/dart_backend/placeholder_collector.dart b/lib/compiler/implementation/dart_backend/placeholder_collector.dart index f7f071abdfc..dd2ae79cde0 100644 --- a/lib/compiler/implementation/dart_backend/placeholder_collector.dart +++ b/lib/compiler/implementation/dart_backend/placeholder_collector.dart @@ -348,7 +348,7 @@ class PlaceholderCollector extends AbstractVisitor { } } final type = compiler.resolveTypeAnnotation(currentElement, node); - if (type is InterfaceType || type is FunctionType) { + if (type is InterfaceType || type is TypedefType) { var target = node.typeName; if (node.typeName is Send) { final element = treeElements[node];