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

Unified Diff: test/codegen/expect/misc.js

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 | « lib/src/utils.dart ('k') | test/codegen/misc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/misc.js
diff --git a/test/codegen/expect/misc.js b/test/codegen/expect/misc.js
index 9c4419fb6307c623f1d0d0cde1020d5ffcd0b139..e46d97eef901d0d0638527479aac3ab04123724a 100644
--- a/test/codegen/expect/misc.js
+++ b/test/codegen/expect/misc.js
@@ -7,13 +7,28 @@ var core = dart.import(core);
}
}
let UNINITIALIZED = dart.const(new _Uninitialized());
+ let Generic$ = dart.generic(function(T) {
+ class Generic extends core.Object {
+ get type() {
+ return Generic$();
+ }
+ }
+ return Generic;
+ });
+ let Generic = Generic$();
// Function main: () → dynamic
function main() {
core.print(dart.toString(1));
core.print(dart.toString(1.0));
core.print(dart.toString(1.1));
+ let x = 42;
+ core.print(dart.equals(x, dart.dynamic));
+ core.print(dart.equals(x, Generic));
+ core.print(new (Generic$(core.int))().type);
}
// Exports:
exports.UNINITIALIZED = UNINITIALIZED;
+ exports.Generic$ = Generic$;
+ exports.Generic = Generic;
exports.main = main;
})(misc, core);
« no previous file with comments | « lib/src/utils.dart ('k') | test/codegen/misc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698