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

Unified Diff: test/codegen/misc.dart

Issue 1142713004: fixes #184, type literals now use emitTypeName (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: another case Created 5 years, 7 months 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 | « test/codegen/expect/misc.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/misc.dart
diff --git a/test/codegen/misc.dart b/test/codegen/misc.dart
index 8081cce4421a692abb240ca956eecd267cfa1831..4bde2571312ed0648287dacf4828e5eb1a913bbf 100644
--- a/test/codegen/misc.dart
+++ b/test/codegen/misc.dart
@@ -7,9 +7,21 @@
const UNINITIALIZED = const _Uninitialized();
class _Uninitialized { const _Uninitialized(); }
+class Generic<T> {
+ Type get type => Generic;
+}
+
main() {
// Number literals in call expressions.
print(1.toString());
print(1.0.toString());
print(1.1.toString());
+
+ // Type literals, #184
+ dynamic x = 42;
+ print(x == dynamic);
+ print(x == Generic);
+
+ // Should be Generic<dynamic>
+ print(new Generic<int>().type);
}
« no previous file with comments | « test/codegen/expect/misc.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698