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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 12610004: Start using the new union/intersection code for HType.INDEXABLE_PRIMITIVE. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Simplify even further. Created 7 years, 9 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/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 149ccf3cbd5e70839a8873d1ae2cfaabe02b6194..ca8b01e2cf8e6804b7f316e0c218d9eccbcf72f8 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -63,13 +63,14 @@ const String DEFAULT_HELPERLIB = r'''
throwAbstractClassInstantiationError(className) {}''';
const String DEFAULT_INTERCEPTORSLIB = r'''
- class JSArray implements List {
+ class JSIndexable {}
+ class JSArray implements List, JSIndexable {
var length;
operator[](index) {}
operator[]=(index, value) {}
var add;
}
- class JSString implements String {
+ class JSString implements String, JSIndexable {
var length;
operator[](index) {}
toString() {}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/types.dart ('k') | tests/compiler/dart2js/type_combination_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698