diff --git a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java index 957d5e66fc5..cd2aa9496fe 100644 --- a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java +++ b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java @@ -668,4 +668,16 @@ public class NegativeParserTest extends CompilerTestCase { "}", "")); } + + /** + * We can parse operator "call" declaration. + */ + public void test_operator_call() { + parseExpectErrors(Joiner.on("\n").join( + "// filler filler filler filler filler filler filler filler filler filler", + "class A {", + " operator call() {}", + "}", + "")); + } } diff --git a/tests/language/language.status b/tests/language/language.status index 5e57bd4d8b2..413ac6f4da9 100644 --- a/tests/language/language.status +++ b/tests/language/language.status @@ -75,7 +75,7 @@ ConstructorDuplicateInitializersTest/01: Fail ConstructorDuplicateInitializersTest/02: Fail # Issue 1355 -CallOperatorTest: Fail +CallOperatorTest: Pass ConstConstructorSyntaxTest/05: Fail GetSetSyntaxTest/04: Fail # Issue 1569 @@ -112,106 +112,44 @@ ConstConstructorSyntaxTest/05: Fail FinalSyntaxTest/none: Fail # Marked failed after code generation removed from dartc -ApplicationNegativeTest: Fail # status change with --check-only -AssertKeywordNegativeTest: Fail # status change with --check-only -AssignInstanceMethodNegativeTest: Fail # status change with --check-only -BodyLessConstructorWrongArgNegativeTest: Fail # status change with --check-only -CallOperatorTest: Pass # status change with --check-only -CallThroughNullGetterTest: Pass # status change with --check-only -CharEscapeTest: Pass # status change with --check-only -ClosureCallWrongArgumentCountNegativeTest: Fail # status change with --check-only -ConstCounterNegativeTest: Fail # status change with --check-only -ConstInit4NegativeTest: Fail # status change with --check-only -ConstObjectsAreImmutableTest: Pass # status change with --check-only -Constructor2Test: Pass # status change with --check-only -Constructor3NegativeTest: Fail # status change with --check-only -Constructor3Test: Pass # status change with --check-only -Constructor4Test: Pass # status change with --check-only -Constructor5Test: Pass # status change with --check-only -Constructor6Test: Pass # status change with --check-only -ConstructorCallWrongArgumentCountNegativeTest: Fail # status change with --check-only -CTConstTest: Pass # status change with --check-only -DivByZeroTest: Pass # status change with --check-only -DynamicTest: Pass # status change with --check-only -ExampleConstructorTest: Pass # status change with --check-only -ExpectTest: Pass # status change with --check-only -Field3aNegativeTest: Fail # status change with --check-only -FieldMethod4NegativeTest: Fail # status change with --check-only -For2Test: Pass # status change with --check-only -GenericTest: Pass # status change with --check-only -GetterClosureExecutionOrderTest: Pass # status change with --check-only -InstanceCallWrongArgumentCountNegativeTest: Fail # status change with --check-only -IsObjectTest: Pass # status change with --check-only -Label2NegativeTest: Fail # status change with --check-only -ListLiteral3Test: Pass # status change with --check-only -ListTest: Pass # status change with --check-only -LocalFunction3Test: Pass # status change with --check-only -LocalFunctionTest: Pass # status change with --check-only -ManyOverriddenNoSuchMethodTest: Pass # status change with --check-only -NamedParametersNegativeTest: Fail # status change with --check-only -NamedParametersTypeTest: Pass # status change with --check-only -NamingTest: Pass # status change with --check-only -NoSuchMethodNegativeTest: Fail # status change with --check-only -NoSuchMethodTest: Pass # status change with --check-only -NullToStringTest: Pass # status change with --check-only -OverriddenNoSuchMethodTest: Pass # status change with --check-only -Prefix6NegativeTest: Fail # status change with --check-only -PrivateMember3NegativeTest: Fail # status change with --check-only -RegExp3Test: Pass # status change with --check-only -StackOverflowTest: Pass # status change with --check-only -StackTraceTest: Pass # status change with --check-only -StaticCallWrongArgumentCountNegativeTest: Fail # status change with --check-only -StaticField1aRunNegativeTest: Fail # status change with --check-only -StaticField1RunNegativeTest: Fail # status change with --check-only -StaticField2aRunNegativeTest: Fail # status change with --check-only -StaticField2RunNegativeTest: Fail # status change with --check-only -StringConcatTest: Pass # status change with --check-only -Switch3NegativeTest: Fail # status change with --check-only - -TypeChecksInFactoryMethodTest: Pass # status change with --check-only +ApplicationNegativeTest: Fail +AssertKeywordNegativeTest: Fail +AssignInstanceMethodNegativeTest: Fail +BodyLessConstructorWrongArgNegativeTest: Fail +ClosureCallWrongArgumentCountNegativeTest: Fail +ConstCounterNegativeTest: Fail # issue 1655 +ConstructorCallWrongArgumentCountNegativeTest: Fail +Field3aNegativeTest: Fail +FieldMethod4NegativeTest: Fail +InstanceCallWrongArgumentCountNegativeTest: Fail +Label2NegativeTest: Fail # issue 1658 +NamedParametersNegativeTest: Fail +NoSuchMethodNegativeTest: Fail +Prefix6NegativeTest: Fail +PrivateMember3NegativeTest: Fail +StaticCallWrongArgumentCountNegativeTest: Fail +StaticField1aRunNegativeTest: Fail # issue 1662 +StaticField1RunNegativeTest: Fail # issue 1662 +StaticField2aRunNegativeTest: Fail # issue 1662 +StaticField2RunNegativeTest: Fail # issue 1662 +Switch3NegativeTest: Fail # issue 1663 # Problems traiaged before static analysis-only change AssertTest: Fail # Uses AssertError class. Bug 4385894. -CTConstTest: Fail # Bug 5202940, Issue 176 -CallThroughNullGetterTest: Fail # Throw ObjectNotClosure instead of NullPointerException. -CallOperatorTest: Fail # Issue 1355 -CharEscapeTest: Fail -ConstInit6NegativeTest: Fail # Issue 811 -ConstObjectsAreImmutableTest: Fail # Bug 5202940, Issue 176 -Constructor2Test: Fail # Issue 255 -Constructor3Test: Fail # Issue 257 -Constructor4Test: Fail # Issue 286 -Constructor5Test: Fail # Issue 8440015 + 'super' initializer does not parse -Constructor6Test: Fail # Issue 8440015 + 'super' initializer does not parse +CallOperatorTest: Pass # Issue 1355 +CharEscapeTest: Pass # Issue 1654 +Constructor3NegativeTest: Fail DefaultFactoryLibraryTest: Fail # Issue 514 -DivByZeroTest: Fail # Bug 5184183 DuplicateImplementsTest: Skip # Issue 976 -DynamicTest: Fail # Bug 5527899. -ExampleConstructorTest: Fail # Bug 4205742. -ExpectTest: Fail # Missing extensions to class Expect. -For2Test: Fail # Bug 4995208. FunctionTypeAliasNegativeTest: Fail # Bug 5231617. GenericParameterizedExtendsTest: Skip # Bug 5392297 -GenericTest: Fail # Bug 5393302 (missing call to super constructor) -GetterClosureExecutionOrderTest: Fail # Bug 5481595 -IsObjectTest: Fail # Issue 1455 Library4NegativeTest: Fail # Bug 5406175 -ListLiteral3Test: Fail # Bug 5202940, Issue 176 ListLiteral4Test: Fail # Issue 1343 -ListTest: Fail # Bug 5146975. LiteralUnaryPlusTest/01: Fail # Issue 1399 -LocalFunction3Test: Fail # Bug 4202974. -LocalFunctionTest: Fail # Bug in test. Bug 4202989 (shadowing). MapLiteral4Test: Fail # Issue 1343 -ManyOverriddenNoSuchMethodTest: Fail # Bug 4202974. -NamedParametersTypeTest: Fail # Implementation in progress. -NamingTest: Fail # Issue 356 -NoSuchMethodTest: Fail # Bug 4202974. -NullToStringTest: Fail # Bug 5421978 NumbersTest: Fail # Fails because numbers are mapped to doubles. -OverriddenNoSuchMethodTest: Fail # Bug 4202974. OverrideFieldMethod1NegativeTest: Fail # Bug 5215249 OverrideFieldMethod2NegativeTest: Fail # Bug 5215249 OverrideFieldMethod3NegativeTest: Fail # Bug 5215249 @@ -241,11 +179,7 @@ PseudoKWIllegalTest/13: Fail # Issue 356 PseudoKWIllegalTest/14: Fail # Issue 356 PseudoKWIllegalTest/15: Fail # Issue 356 PseudoKWIllegalTest/16: Fail # Issue 356 -RegExp3Test: Fail # 5299683 ScopeNegativeTest: Fail # Bug 4207538. -StackOverflowTest: Fail # Bug 4591172. -StackTraceTest: Fail # Bug 4971920. -StringConcatTest: Fail # Bug 5196164 StringEscape1NegativeTest: Fail # Issue 1351. StringEscape4NegativeTest: Fail # Issue 1351. SuperOperatorTest: Fail # Bug 4995463. @@ -258,7 +192,6 @@ SyntaxTest/32: Fail # Issue 1108 SyntaxTest/33: Fail # Issue 1108 ThirdTest: Skip # Seems flaky in dartc after fixing test, was Bug 5339586 Throw7NegativeTest: Fail # Bug 4208459. -TypeChecksInFactoryMethodTest: Fail # Issue 925 # # Add new dartc annotations above in alphabetical order