| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java
|
| index e408f11b58dc47fca239b6bef24d83029317cfd3..58a75114c36fe78590f05748eb7b0da582e4218e 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticTypeWarningCodeTest.java
|
| @@ -26,20 +26,6 @@ public class StaticTypeWarningCodeTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| - public void fail_invocationOfNonFunction_staticInSuperclass() throws Exception {
|
| - Source source = addSource(createSource(//
|
| - "class A {",
|
| - " static void a() {}",
|
| - "}",
|
| - "",
|
| - "class B extends A {",
|
| - " void b() { a(); }",
|
| - "}"));
|
| - resolve(source);
|
| - assertErrors(StaticTypeWarningCode.INVOCATION_OF_NON_FUNCTION);
|
| - verify(source);
|
| - }
|
| -
|
| public void test_inconsistentMethodInheritance_paramCount() throws Exception {
|
| Source source = addSource(createSource(//
|
| "abstract class A {",
|
| @@ -304,6 +290,16 @@ public class StaticTypeWarningCodeTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| + public void test_invocationOfNonFunctionExpression_literal() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "f() {",
|
| + " 3(5);",
|
| + "}"));
|
| + resolve(source);
|
| + assertErrors(StaticTypeWarningCode.INVOCATION_OF_NON_FUNCTION_EXPRESSION);
|
| + verify(source);
|
| + }
|
| +
|
| public void test_nonBoolCondition_conditional() throws Exception {
|
| Source source = addSource(createSource(//
|
| "f() { return 3 ? 2 : 1; }"));
|
|
|