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

Unified Diff: test/codegen_expected/language/map_literal_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/map_literal_test.js
diff --git a/test/codegen_expected/language/map_literal_test.js b/test/codegen_expected/language/map_literal_test.js
index d8220a9ccd1550bc7578feb8098f8f74ebedf22d..49a33ea944c6b921242da080cffb715506f5b1b2 100644
--- a/test/codegen_expected/language/map_literal_test.js
+++ b/test/codegen_expected/language/map_literal_test.js
@@ -26,8 +26,8 @@ dart_library.library('language/map_literal_test', null, /* Imports */[
testClass.test();
}
testLocalInit() {
- let map1 = dart.map({a: 1, b: 2});
- let map2 = dart.map({"1": 1, "2": 2});
+ let map1 = dart.map({a: 1, b: 2}, core.String, core.int);
+ let map2 = dart.map({"1": 1, "2": 2}, core.String, core.int);
expect$.Expect.equals(1, map1[dartx.get]("a"));
expect$.Expect.equals(2, map1[dartx.get]("b"));
expect$.Expect.equals(1, map2[dartx.get]("1"));
@@ -58,12 +58,12 @@ dart_library.library('language/map_literal_test', null, /* Imports */[
constructors: () => ({new: dart.definiteFunctionType(map_literal_test.StaticInit, [])}),
methods: () => ({test: dart.definiteFunctionType(dart.dynamic, [])})
});
- map_literal_test.StaticInit.map1 = dart.const(dart.map({a: 1, b: 2}));
- map_literal_test.StaticInit.map2 = dart.const(dart.map({"1": 1, "2": 2}));
+ map_literal_test.StaticInit.map1 = dart.const(dart.map({a: 1, b: 2}, core.String, core.int));
+ map_literal_test.StaticInit.map2 = dart.const(dart.map({"1": 1, "2": 2}, core.String, core.int));
map_literal_test.ConstInit = class ConstInit extends core.Object {
new() {
- this.map1 = dart.map({a: 1, b: 2});
- this.map2 = dart.map({"1": 1, "2": 2});
+ this.map1 = dart.map({a: 1, b: 2}, core.String, core.int);
+ this.map2 = dart.map({"1": 1, "2": 2}, core.String, core.int);
}
test() {
expect$.Expect.equals(1, dart.dindex(this.map1, "a"));
« no previous file with comments | « test/codegen_expected/language/map_literal9_test.js ('k') | test/codegen_expected/language/methods_as_constants_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698