.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
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user