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

Unified Diff: samples/swarm/BiIterator.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 80chars. Created 8 years, 1 month 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: samples/swarm/BiIterator.dart
diff --git a/samples/swarm/BiIterator.dart b/samples/swarm/BiIterator.dart
index 58779be7be5c8a3b4d18de95624153d964d16b1a..a6a97cd318937a6395c4f8092f14195a2fc6426b 100644
--- a/samples/swarm/BiIterator.dart
+++ b/samples/swarm/BiIterator.dart
@@ -58,7 +58,7 @@ class BiIterator<E> {
*/
void jumpToValue(E val) {
for (int i = 0; i < list.length; i++) {
- if (list[i] === val) {
+ if (identical(list[i], val)) {
Lasse Reichstein Nielsen 2012/11/12 13:10:41 Arguably this should never have been === to begin
floitsch 2012/11/12 22:18:43 Maybe, but I don't know if they depend on it. Keep
currentIndex.value = i;
break;
}

Powered by Google App Engine
This is Rietveld 408576698