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

Unified Diff: tests/language/hash_code_mangling_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/hash_code_mangling_test.dart
diff --git a/tests/language/hash_code_mangling_test.dart b/tests/language/hash_code_mangling_test.dart
index 305951789b2b4ddc58b48db075c3514ee5caeb40..07b01a4196f31ee79803f5eaf0a813d0a98ffa27 100644
--- a/tests/language/hash_code_mangling_test.dart
+++ b/tests/language/hash_code_mangling_test.dart
@@ -10,8 +10,8 @@ void main() {
Foo foo = new Foo();
foo.$identityHash = 'fisk';
Expect.isTrue(foo.$identityHash is String);
- int hash = foo.hashCode();
+ int hash = foo.hashCode;
Expect.isTrue(hash is int);
Expect.isTrue(foo.$identityHash is String);
- Expect.equals(hash, foo.hashCode());
+ Expect.equals(hash, foo.hashCode);
}

Powered by Google App Engine
This is Rietveld 408576698