| Index: compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java
|
| diff --git a/compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java b/compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java
|
| index c7559db7fa788b2593aee099e11af5e9b442227b..eeb8801658ee0d8f5ea0de818b92998b2887c925 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java
|
| @@ -180,7 +180,7 @@ public class MemberBuilder {
|
| for (DartParameter parameter : node.getParameters()) {
|
| parameters.add((VariableElement) parameter.accept(this));
|
| }
|
| - Type returnType = resolveType(node.getReturnTypeNode(), false, false,
|
| + Type returnType = resolveType(node.getReturnTypeNode(), false, false, true,
|
| TypeErrorCode.NO_SUCH_TYPE, TypeErrorCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS);
|
| ClassElement functionElement = getTypeProvider().getFunctionType().getElement();
|
| element.setFunctionType(Types.makeFunctionType(getContext(), functionElement,
|
| @@ -254,7 +254,7 @@ public class MemberBuilder {
|
| isStatic = true;
|
| }
|
| }
|
| - Type type = resolveType(node.getTypeNode(), isStatic, false, TypeErrorCode.NO_SUCH_TYPE,
|
| + Type type = resolveType(node.getTypeNode(), isStatic, false, true, TypeErrorCode.NO_SUCH_TYPE,
|
| TypeErrorCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS);
|
| for (DartField fieldNode : node.getFields()) {
|
| if (fieldNode.getModifiers().isAbstractField()) {
|
| @@ -307,6 +307,7 @@ public class MemberBuilder {
|
| null,
|
| true,
|
| false,
|
| + false,
|
| ResolverErrorCode.NO_SUCH_TYPE_CONSTRUCTOR,
|
| ResolverErrorCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS).getElement();
|
| }
|
|
|