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

Unified Diff: test/codegen_expected/language/compile_time_constant_a_test.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
Index: test/codegen_expected/language/compile_time_constant_a_test.js
diff --git a/test/codegen_expected/language/compile_time_constant_a_test.js b/test/codegen_expected/language/compile_time_constant_a_test.js
index 6abfc30a8682eee35c4b5c3deba8852dd862929f..42c44d90c9892bc29324c93bcb56180ad5ed3ef1 100644
--- a/test/codegen_expected/language/compile_time_constant_a_test.js
+++ b/test/codegen_expected/language/compile_time_constant_a_test.js
@@ -9,6 +9,7 @@ dart_library.library('language/compile_time_constant_a_test', null, /* Imports *
const dartx = dart_sdk.dartx;
const expect$ = expect.expect;
const compile_time_constant_a_test = Object.create(null);
+ let MapOfString$int = () => (MapOfString$int = dart.constFn(core.Map$(core.String, core.int)))();
let JSArrayOfString = () => (JSArrayOfString = dart.constFn(_interceptors.JSArray$(core.String)))();
let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(core.int)))();
let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionType(core.bool, [dart.dynamic])))();
@@ -17,12 +18,12 @@ dart_library.library('language/compile_time_constant_a_test', null, /* Imports *
let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
let dynamicAnddynamicTovoid = () => (dynamicAnddynamicTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [dart.dynamic, dart.dynamic])))();
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
- compile_time_constant_a_test.m1 = dart.const(dart.map({a: 400 + 99}));
- compile_time_constant_a_test.m2 = dart.const(dart.map({a: 499, b: 42}));
- compile_time_constant_a_test.m3 = dart.const(dart.map({m1: compile_time_constant_a_test.m1, m2: compile_time_constant_a_test.m2}));
- compile_time_constant_a_test.m4 = dart.const(dart.map({z: 9, a: 8, m: 7}));
- compile_time_constant_a_test.m5 = dart.const(dart.map({'': 499}));
- compile_time_constant_a_test.m6 = dart.const(dart.map({a: 499}));
+ compile_time_constant_a_test.m1 = dart.const(dart.map({a: 400 + 99}, core.String, core.int));
+ compile_time_constant_a_test.m2 = dart.const(dart.map({a: 499, b: 42}, core.String, core.int));
+ compile_time_constant_a_test.m3 = dart.const(dart.map({m1: compile_time_constant_a_test.m1, m2: compile_time_constant_a_test.m2}, core.String, MapOfString$int()));
+ compile_time_constant_a_test.m4 = dart.const(dart.map({z: 9, a: 8, m: 7}, core.String, core.int));
+ compile_time_constant_a_test.m5 = dart.const(dart.map({'': 499}, core.String, core.int));
+ compile_time_constant_a_test.m6 = dart.const(dart.map({a: 499}, core.String, core.int));
compile_time_constant_a_test.m7 = dart.const(dart.map());
compile_time_constant_a_test.isUnsupportedError = function(o) {
return core.UnsupportedError.is(o);

Powered by Google App Engine
This is Rietveld 408576698