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

Unified Diff: tests/compiler/dart2js/serialization/test_data.dart

Issue 2119193002: Compute correct names for closures in operator methods. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 months 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
Index: tests/compiler/dart2js/serialization/test_data.dart
diff --git a/tests/compiler/dart2js/serialization/test_data.dart b/tests/compiler/dart2js/serialization/test_data.dart
index 9a24d6570f04dc9476135d3d18fc78c1ef5a7bf8..d438b7871aec1cbc123aa622b28d55966f47af93 100644
--- a/tests/compiler/dart2js/serialization/test_data.dart
+++ b/tests/compiler/dart2js/serialization/test_data.dart
@@ -544,6 +544,24 @@ test() {}
'c.dart': '''
''',
}, expectedErrorCount: 1),
+
+ const Test('Closure in operator function', const {
+ 'main.dart': '''
+import 'a.dart';
+
+main() {
+ test();
+}
+''',
+ }, preserializedSourceFiles: const {
+ 'a.dart': '''
+class C {
+ operator ==(other) => () {};
+}
+
+test() => new C() == null;
+''',
+ }),
];
class Test {

Powered by Google App Engine
This is Rietveld 408576698