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

Unified Diff: tests/language/first_class_types_literals_test.dart

Issue 11360228: Simplify runtime type support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: tests/language/first_class_types_literals_test.dart
diff --git a/tests/language/first_class_types_literals_test.dart b/tests/language/first_class_types_literals_test.dart
index df8d6d6b0ea0f50cbca5a317b2b57f7ce07b0e41..31724b6ca9501898c5b701cff5099389198b6747 100644
--- a/tests/language/first_class_types_literals_test.dart
+++ b/tests/language/first_class_types_literals_test.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class C<T> {}
+class C<T, U, V> {}
class D {}
@@ -23,6 +23,9 @@ main() {
// Test that types from runtimeType and literals agree.
Expect.equals(int, 1.runtimeType);
+ Expect.equals(String, 'hest'.runtimeType);
+ Expect.equals(double, (0.5).runtimeType);
+ Expect.equals(bool, true.runtimeType);
Expect.equals(C, new C().runtimeType);
Expect.equals(D, new D().runtimeType);

Powered by Google App Engine
This is Rietveld 408576698