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

Unified Diff: tests/language/first_class_types_test.dart

Issue 11348207: Fix runtimeType for List and bool. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add a test. Created 8 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 | « sdk/lib/_internal/compiler/implementation/lib/js_array.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/first_class_types_test.dart
diff --git a/tests/language/first_class_types_test.dart b/tests/language/first_class_types_test.dart
index 419dbbbc1d2975ab1ffa1f4ce311bc83c6306814..95090d6793d5fe81d599fc33f422959a585ed4ee 100644
--- a/tests/language/first_class_types_test.dart
+++ b/tests/language/first_class_types_test.dart
@@ -24,12 +24,19 @@ main() {
var i = 1;
var s = 'string';
var d = 3.14;
+ var b = true;
sameType(2, i);
sameType('hest', s);
sameType(1.2, d);
+ sameType(false, b);
var l = [1, 2, 3];
var m = {'a': 1, 'b': 2};
sameType([], l);
sameType({}, m);
+
+ // Test parameterized lists.
+ sameType(new List<int>(), new List<int>());
+ differentType(new List<int>(), new List<num>());
+ differentType(new List<int>(), new List());
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/js_array.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698