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

Unified Diff: tests/language/const_list_test.dart

Issue 81363002: Improve type test and type equality for generics (issue 15148). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
« no previous file with comments | « runtime/vm/raw_object.h ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/const_list_test.dart
===================================================================
--- tests/language/const_list_test.dart (revision 30544)
+++ tests/language/const_list_test.dart (working copy)
@@ -34,6 +34,12 @@
a = const [1, 2, 3.1];
b = const [1, 2, 3.1];
Expect.equals(true, a == b);
+ a = const <num>[1, 2, 3.1];
+ b = const [1, 2, 3.1];
+ Expect.equals(false, a == b);
+ a = const <dynamic>[1, 2, 3.1];
+ b = const [1, 2, 3.1];
+ Expect.equals(true, a == b);
}
}
« no previous file with comments | « runtime/vm/raw_object.h ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698