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

Unified Diff: compiler/javatests/com/google/dart/compiler/backend/js/testListSubTypeExprOpt.dart

Issue 8424012: Add optional arguments to our indexOf/lastIndexOf methods. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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: compiler/javatests/com/google/dart/compiler/backend/js/testListSubTypeExprOpt.dart
===================================================================
--- compiler/javatests/com/google/dart/compiler/backend/js/testListSubTypeExprOpt.dart (revision 942)
+++ compiler/javatests/com/google/dart/compiler/backend/js/testListSubTypeExprOpt.dart (working copy)
@@ -12,8 +12,8 @@
void addAll(Collection<T> collection) {}
void sort(int f(T, T)) {}
void copyFrom(List<Object> src, int srcStart, int dstStart, int count) {}
- int indexOf(T element, int startIndex) { return null; }
- int lastIndexOf(T element, int startIndex) { return null; }
+ int indexOf(T element, [int start = 0]) { return null; }
+ int lastIndexOf(T element, [int start = null]) { return null; }
void setRange(int start, int length, List from, [int startFrom = 0]) {}
void removeRange(int start, int length) {}
void insertRange(int start, int length, [initialValue = null]) {}

Powered by Google App Engine
This is Rietveld 408576698