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

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

Issue 1944483002: Redo how Type objects are exposed from DDC. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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
Index: test/codegen/expect/misc.js
diff --git a/test/codegen/expect/misc.js b/test/codegen/expect/misc.js
index 564cd0eaeca1f2d91936af3ca6fbd8cbde65203a..698415f080bb9e89c30531b5651de80d5884755a 100644
--- a/test/codegen/expect/misc.js
+++ b/test/codegen/expect/misc.js
@@ -17,10 +17,10 @@ dart_library.library('misc', null, /* Imports */[
misc.Generic$ = dart.generic(T => {
class Generic extends core.Object {
get type() {
- return misc.Generic;
+ return dart.wrapType(misc.Generic$());
}
m() {
- return core.print(T);
+ return core.print(dart.wrapType(T));
}
}
dart.setSignature(Generic, {
@@ -57,8 +57,8 @@ dart_library.library('misc', null, /* Imports */[
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, misc.Generic));
+ core.print(dart.equals(x, dart.wrapType(dart.dynamic)));
+ core.print(dart.equals(x, dart.wrapType(misc.Generic$())));
core.print(new (misc.Generic$(core.int))().type);
core.print(dart.equals(new misc.Derived(), new misc.Derived()));
new (misc.Generic$(core.int))().m();

Powered by Google App Engine
This is Rietveld 408576698