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

Unified Diff: tests/corelib/map_test.dart

Issue 836123002: Don't inherit two versions of Comparable. Not supported by dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/map_test.dart
diff --git a/tests/corelib/map_test.dart b/tests/corelib/map_test.dart
index efe6239712bea997fe879b0bdaeb80761cb9c9f5..79d1ace519b3fb3b0cfada9be45aefa09e513916 100644
--- a/tests/corelib/map_test.dart
+++ b/tests/corelib/map_test.dart
@@ -903,10 +903,10 @@ class UnmodifiableMapBaseMap<K, V> extends UnmodifiableMapBase<K, V> {
abstract class Super implements Comparable {}
abstract class Interface implements Comparable {}
-class Sub extends Super implements Interface, Comparable<Sub> {
+class Sub extends Super implements Interface, Comparable {
int compareTo(Sub other) => 0;
int get hashCode => 0;
- bool operator==(Object other) => other is Sub;
+ bool operator==(other) => other is Sub;
}
expectMap(Map expect, Map actual) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698