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

Unified Diff: test/codegen_expected/map_keys.js

Issue 2211293002: Reify type params on map literals (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Remove unnecessary null check Created 4 years, 4 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_expected/lib/html/xhr_test.js ('k') | test/codegen_expected/matcher/matcher.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen_expected/map_keys.js
diff --git a/test/codegen_expected/map_keys.js b/test/codegen_expected/map_keys.js
index 2ccf7c911c4257f7623f2d2711f2b54a0dda5181..75c2a0981045a61865725e3e0687c5bea73c1533 100644
--- a/test/codegen_expected/map_keys.js
+++ b/test/codegen_expected/map_keys.js
@@ -9,12 +9,12 @@ dart_library.library('map_keys', null, /* Imports */[
const map_keys = Object.create(null);
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
map_keys.main = function() {
- core.print(dart.map({'1': 2, '3': 4, '5': 6}));
- core.print(dart.map([1, 2, 3, 4, 5, 6]));
- core.print(dart.map({'1': 2, [dart.str`${dart.notNull(math.Random.new().nextInt(2)) + 2}`]: 4, '5': 6}));
+ core.print(dart.map({'1': 2, '3': 4, '5': 6}, core.String, core.int));
+ core.print(dart.map([1, 2, 3, 4, 5, 6], core.int, core.int));
+ core.print(dart.map({'1': 2, [dart.str`${dart.notNull(math.Random.new().nextInt(2)) + 2}`]: 4, '5': 6}, core.String, core.int));
let x = '3';
- core.print(dart.map(['1', 2, x, 4, '5', 6]));
- core.print(dart.map(['1', 2, null, 4, '5', 6]));
+ core.print(dart.map(['1', 2, x, 4, '5', 6], core.String, core.int));
+ core.print(dart.map(['1', 2, null, 4, '5', 6], core.String, core.int));
};
dart.fn(map_keys.main, VoidTodynamic());
// Exports:
« no previous file with comments | « test/codegen_expected/lib/html/xhr_test.js ('k') | test/codegen_expected/matcher/matcher.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698