| Index: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
|
| diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
|
| index f153e21872094a1d5b295f6dffd11987d19edc93..15da593d611dce5bdce0ce9461d0a448fe4e7753 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
|
| @@ -3,9 +3,6 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
| package com.google.dart.compiler.type;
|
|
|
| -import static com.google.dart.compiler.common.ErrorExpectation.assertErrors;
|
| -import static com.google.dart.compiler.common.ErrorExpectation.errEx;
|
| -
|
| import com.google.common.base.Joiner;
|
| import com.google.common.collect.Iterables;
|
| import com.google.common.collect.Lists;
|
| @@ -57,6 +54,9 @@ import com.google.dart.compiler.resolver.NodeElement;
|
| import com.google.dart.compiler.resolver.ResolverErrorCode;
|
| import com.google.dart.compiler.resolver.TypeErrorCode;
|
|
|
| +import static com.google.dart.compiler.common.ErrorExpectation.assertErrors;
|
| +import static com.google.dart.compiler.common.ErrorExpectation.errEx;
|
| +
|
| import java.io.Reader;
|
| import java.io.StringReader;
|
| import java.net.URI;
|
| @@ -3325,37 +3325,6 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
|
| }
|
|
|
| /**
|
| - * It is a static warning if the return type of the user-declared "operator -" is explicitly
|
| - * declared and not a numerical type.
|
| - * <p>
|
| - * http://code.google.com/p/dart/issues/detail?id=3224
|
| - */
|
| - public void test_negateOperatorType() throws Exception {
|
| - AnalyzeLibraryResult libraryResult = analyzeLibrary(
|
| - "// filler filler filler filler filler filler filler filler filler filler",
|
| - "class A {",
|
| - " num operator -() {}",
|
| - "}",
|
| - "class B {",
|
| - " int operator -() {}",
|
| - "}",
|
| - "class C {",
|
| - " double operator -() {}",
|
| - "}",
|
| - "class D {",
|
| - " String operator -() {}",
|
| - "}",
|
| - "class E {",
|
| - " Object operator -() {}",
|
| - "}",
|
| - "");
|
| - assertErrors(
|
| - libraryResult.getErrors(),
|
| - errEx(TypeErrorCode.OPERATOR_NEGATE_NUM_RETURN_TYPE, 12, 3, 6),
|
| - errEx(TypeErrorCode.OPERATOR_NEGATE_NUM_RETURN_TYPE, 15, 3, 6));
|
| - }
|
| -
|
| - /**
|
| * It is a static warning if the return type of the user-declared operator == is explicitly
|
| * declared and not bool.
|
| */
|
|
|