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

Unified Diff: tests/utils/dummy_compiler_test.dart

Issue 140803002: Perform override and inheritance checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: tests/utils/dummy_compiler_test.dart
diff --git a/tests/utils/dummy_compiler_test.dart b/tests/utils/dummy_compiler_test.dart
index 2c3e81c33a4999503a19407cf065ae725299ed83..54742c79d3d801e0af3c1a80cd7c9b2845a8b109 100644
--- a/tests/utils/dummy_compiler_test.dart
+++ b/tests/utils/dummy_compiler_test.dart
@@ -54,24 +54,25 @@ class Interceptor {
operator==(other) {}
get hashCode => throw 'Interceptor.hashCode not implemented.';
}
-class JSIndexable {
- get length {}
+abstract class JSIndexable {
+ get length;
}
-class JSMutableIndexable {}
-class JSArray<E> implements JSIndexable {
+abstract class JSMutableIndexable {}
+abstract class JSArray<E> implements JSIndexable {
JSArray() {}
factory JSArray.typed(a) => a;
var removeLast;
var add;
}
-class JSMutableArray extends JSArray {}
-class JSFixedArray extends JSMutableArray {}
-class JSExtendableArray extends JSMutableArray {}
+abstract class JSMutableArray extends JSArray {}
+abstract class JSFixedArray extends JSMutableArray {}
+abstract class JSExtendableArray extends JSMutableArray {}
class JSString implements JSIndexable {
var split;
var concat;
operator+(other) {}
var toString;
+ get length => 0;
}
class JSFunction {}
class JSInt {}

Powered by Google App Engine
This is Rietveld 408576698