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

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

Issue 17151007: Eagerly infer the element type of const lists in the simple inferrer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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
===================================================================
--- tests/compiler/dart2js/mock_compiler.dart (revision 24128)
+++ tests/compiler/dart2js/mock_compiler.dart (working copy)
@@ -92,7 +92,7 @@
abstract class JSMutableIndexable extends JSIndexable {}
class JSArray extends Interceptor implements List, JSIndexable {
var length;
- operator[](index) {}
+ operator[](index) => this[index];
operator[]=(index, value) {}
var add;
}

Powered by Google App Engine
This is Rietveld 408576698