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

Unified Diff: tests/language/arithmetic_test.dart

Issue 11191078: Make hashCode a getter and not a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 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: tests/language/arithmetic_test.dart
diff --git a/tests/language/arithmetic_test.dart b/tests/language/arithmetic_test.dart
index ac59dc356fb85ca9762160f4699d04bb0e2cbd42..419482fc6e2d21b6537718219332ab76a66868f4 100644
--- a/tests/language/arithmetic_test.dart
+++ b/tests/language/arithmetic_test.dart
@@ -406,10 +406,10 @@ class ArithmeticTest {
Expect.equals(true, 1.0 < max(1.0, 12.0));
// Hashcode
- Expect.equals(false, (3.4).hashCode() == (1.2).hashCode());
- Expect.equals(true, (1.2).hashCode() == (1.2).hashCode());
- Expect.equals(false, (3).hashCode() == (1).hashCode());
- Expect.equals(true, (10).hashCode() == (10).hashCode());
+ Expect.equals(false, (3.4).hashCode == (1.2).hashCode);
+ Expect.equals(true, (1.2).hashCode == (1.2).hashCode);
+ Expect.equals(false, (3).hashCode == (1).hashCode);
+ Expect.equals(true, (10).hashCode == (10).hashCode);
}
static testMain() {

Powered by Google App Engine
This is Rietveld 408576698