| Index: pkg/analyzer/test/src/summary/summary_test.dart
|
| diff --git a/pkg/analyzer/test/src/summary/summary_test.dart b/pkg/analyzer/test/src/summary/summary_test.dart
|
| index d04200ef85ed439fc21a65826ce63fd74bc235c6..7346094d429090269328c2851b1979d355cfe7b8 100644
|
| --- a/pkg/analyzer/test/src/summary/summary_test.dart
|
| +++ b/pkg/analyzer/test/src/summary/summary_test.dart
|
| @@ -1286,6 +1286,13 @@ typedef F();
|
| expect(executable.isExternal, false);
|
| }
|
|
|
| + test_executable_operator_equal() {
|
| + UnlinkedExecutable executable =
|
| + serializeClassText('class C { bool operator==(C other) => false; }')
|
| + .executables[0];
|
| + expect(executable.name, '==');
|
| + }
|
| +
|
| test_executable_operator_external() {
|
| UnlinkedExecutable executable =
|
| serializeClassText('class C { external C operator+(C c); }')
|
| @@ -1293,6 +1300,13 @@ typedef F();
|
| expect(executable.isExternal, true);
|
| }
|
|
|
| + test_executable_operator_greater_equal() {
|
| + UnlinkedExecutable executable =
|
| + serializeClassText('class C { bool operator>=(C other) => false; }')
|
| + .executables[0];
|
| + expect(executable.name, '>=');
|
| + }
|
| +
|
| test_executable_operator_index() {
|
| UnlinkedExecutable executable =
|
| serializeClassText('class C { bool operator[](int i) => null; }')
|
| @@ -1324,6 +1338,13 @@ typedef F();
|
| expect(executable.typeParameters, isEmpty);
|
| }
|
|
|
| + test_executable_operator_less_equal() {
|
| + UnlinkedExecutable executable =
|
| + serializeClassText('class C { bool operator<=(C other) => false; }')
|
| + .executables[0];
|
| + expect(executable.name, '<=');
|
| + }
|
| +
|
| test_executable_param_function_typed() {
|
| UnlinkedExecutable executable = serializeExecutableText('f(g()) {}');
|
| expect(executable.parameters[0].isFunctionTyped, isTrue);
|
|
|