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

Unified Diff: tests/corelib/null_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/corelib/null_test.dart
diff --git a/tests/corelib/null_test.dart b/tests/corelib/null_test.dart
index 7879ac5532389a5f59aa6c66fb30e95ee3f01f5a..8f30e6cf47f560119625ab78f6667bcd0ca9aaa5 100644
--- a/tests/corelib/null_test.dart
+++ b/tests/corelib/null_test.dart
@@ -15,7 +15,7 @@ main() {
// These shouldn't throw.
x.runtimeType;
x.toString();
- x.hashCode();
+ x.hashCode;
// operator== is inherited from Object. It's the same as identical.
// It's not really testable.
@@ -23,8 +23,6 @@ main() {
Expect.isTrue(x == null);
// Methods can be closurized and yields the same result.
- var hc = x.hashCode;
- Expect.equals(null.hashCode(), hc());
var ts = x.toString;
Expect.equals(null.toString(), ts());

Powered by Google App Engine
This is Rietveld 408576698