| Index: compiler/java/com/google/dart/compiler/resolver/Resolver.java
|
| diff --git a/compiler/java/com/google/dart/compiler/resolver/Resolver.java b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
|
| index af957a59bb4873b0ea7fae3acec95ffcc8560538..25395365b4667f0d0808ef66248e0ab6118fec71 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/Resolver.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
|
| @@ -1007,9 +1007,7 @@ public class Resolver {
|
| }
|
| }
|
| if (isStaticContextOrInitializer()) {
|
| - if (!context.shouldWarnOnNoSuchType()) {
|
| - onError(x, ResolverErrorCode.CANNOT_BE_RESOLVED, name);
|
| - }
|
| + onError(x, ResolverErrorCode.CANNOT_BE_RESOLVED, name);
|
| }
|
| } else {
|
| element = checkResolvedIdentifier(x, isQualifier, scope, name, element);
|
| @@ -1691,9 +1689,7 @@ public class Resolver {
|
|
|
| private ConstructorElement checkIsConstructor(DartNewExpression source, Element element) {
|
| if (!ElementKind.of(element).equals(ElementKind.CONSTRUCTOR)) {
|
| - if (!context.shouldWarnOnNoSuchType()) {
|
| - onError(source.getConstructor(), ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR);
|
| - }
|
| + onError(source.getConstructor(), ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR);
|
| return null;
|
| }
|
| return (ConstructorElement) element;
|
|
|