Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1861)

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_test.dart

Issue 1530363002: Fix summary resynthesis for operators ending in '='. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Konstantin's suggestion Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | pkg/analyzer/test/src/summary/summary_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/resynthesize_test.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
index 307b104b678df6e164e8fb5c4bb3377c6733d3b0..f979b8d83fac8a4adb8baf965b5fabce5b1213fd 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -798,10 +798,18 @@ class E {
checkLibrary('class C { C operator+(C other) => null; }');
}
+ test_operator_equal() {
+ checkLibrary('class C { bool operator==(C other) => false; }');
+ }
+
test_operator_external() {
checkLibrary('class C { external C operator+(C other); }');
}
+ test_operator_greater_equal() {
+ checkLibrary('class C { bool operator>=(C other) => false; }');
+ }
+
test_operator_index() {
checkLibrary('class C { bool operator[](int i) => null; }');
}
@@ -810,6 +818,10 @@ class E {
checkLibrary('class C { void operator[]=(int i, bool v) {} }');
}
+ test_operator_less_equal() {
+ checkLibrary('class C { bool operator<=(C other) => false; }');
+ }
+
test_parts() {
addNamedSource('/a.dart', 'part of my.lib;');
addNamedSource('/b.dart', 'part of my.lib;');
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | pkg/analyzer/test/src/summary/summary_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698