Index: test/codegen/corelib/type_hashcode_test.dart |
diff --git a/test/codegen/corelib/type_hashcode_test.dart b/test/codegen/corelib/type_hashcode_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..49c9ab8f97cbe62008fea16d60dfbdbe0c4149bc |
--- /dev/null |
+++ b/test/codegen/corelib/type_hashcode_test.dart |
@@ -0,0 +1,11 @@ |
+import "package:expect/expect.dart"; |
+ |
+void main() { |
+ var h = "hello", w = "world"; |
+ Expect.notEquals(h.hashCode, w.hashCode); |
+ Expect.notEquals((String).hashCode, (int).hashCode); |
+ var c = h.runtimeType.hashCode; |
+ Expect.isTrue(c is int); |
+ Expect.notEquals(c, null); |
+ Expect.notEquals(c, 0); |
+} |