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

Side by Side Diff: test/codegen_expected/language/regress_23046_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 unified diff | Download patch
OLDNEW
1 dart_library.library('language/regress_23046_test', null, /* Imports */[ 1 dart_library.library('language/regress_23046_test', null, /* Imports */[
2 'dart_sdk', 2 'dart_sdk',
3 'expect' 3 'expect'
4 ], function load__regress_23046_test(exports, dart_sdk, expect) { 4 ], function load__regress_23046_test(exports, dart_sdk, expect) {
5 'use strict'; 5 'use strict';
6 const core = dart_sdk.core; 6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart; 7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx; 8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect; 9 const expect$ = expect.expect;
10 const regress_23046_test = Object.create(null); 10 const regress_23046_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))(); 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 regress_23046_test.y = 'foo'; 12 regress_23046_test.y = 'foo';
13 regress_23046_test.x = dart.str`${regress_23046_test.y}"`; 13 regress_23046_test.x = dart.str`${regress_23046_test.y}"`;
14 regress_23046_test.m = dart.const(dart.map([regress_23046_test.x, 0, regress_2 3046_test.y, 1])); 14 regress_23046_test.m = dart.const(dart.map([regress_23046_test.x, 0, regress_2 3046_test.y, 1], core.String, core.int));
15 regress_23046_test.main = function() { 15 regress_23046_test.main = function() {
16 expect$.Expect.equals(regress_23046_test.x, 'foo"'); 16 expect$.Expect.equals(regress_23046_test.x, 'foo"');
17 expect$.Expect.equals(regress_23046_test.m[dartx.length], 2); 17 expect$.Expect.equals(regress_23046_test.m[dartx.length], 2);
18 }; 18 };
19 dart.fn(regress_23046_test.main, VoidTodynamic()); 19 dart.fn(regress_23046_test.main, VoidTodynamic());
20 // Exports: 20 // Exports:
21 exports.regress_23046_test = regress_23046_test; 21 exports.regress_23046_test = regress_23046_test;
22 }); 22 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698