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

Unified Diff: tests/language/first_class_types_test.dart

Issue 10942028: Support class and typedef literals as expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address Peter's comments. 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_test.dart
diff --git a/tests/language/first_class_types_test.dart b/tests/language/first_class_types_test.dart
index 82c128ff13101cd305962c8c58538b8192a55b8e..5db1e5462bf99418153c8fa088197115381c6715 100644
--- a/tests/language/first_class_types_test.dart
+++ b/tests/language/first_class_types_test.dart
@@ -5,9 +5,7 @@
class C<T> {}
sameType(a, b) {
- print("a: ${a.runtimeType}");
- print("b: ${b.runtimeType}");
- Expect.isTrue(a.runtimeType === b.runtimeType);
+ Expect.identical(a.runtimeType, b.runtimeType);
}
differentType(a, b) {
@@ -17,6 +15,7 @@ differentType(a, b) {
}
main() {
+ // Test types obtained by calling runtimeType.
var v1 = new C<int>();
var v2 = new C<int>();
sameType(v1, v2);

Powered by Google App Engine
This is Rietveld 408576698