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

Side by Side Diff: pkg/dev_compiler/test/codegen_expected/node_modules.js

Issue 2867493002: fix #27256, track type bounds for generic functions (Closed)
Patch Set: fix Created 3 years, 7 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 'use strict'; 1 'use strict';
2 const dart_sdk = require('dart_sdk'); 2 const dart_sdk = require('dart_sdk');
3 const core = dart_sdk.core; 3 const core = dart_sdk.core;
4 const dart = dart_sdk.dart; 4 const dart = dart_sdk.dart;
5 const dartx = dart_sdk.dartx; 5 const dartx = dart_sdk.dartx;
6 const node_modules = Object.create(null); 6 const node_modules = Object.create(null);
7 let B = () => (B = dart.constFn(node_modules.B$()))(); 7 let B = () => (B = dart.constFn(node_modules.B$()))();
8 let _B = () => (_B = dart.constFn(node_modules._B$()))(); 8 let _B = () => (_B = dart.constFn(node_modules._B$()))();
9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionTyp e(dart.dynamic, [])))(); 9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.fnType(dart.dynamic , [])))();
10 let VoidToString = () => (VoidToString = dart.constFn(dart.definiteFunctionType( core.String, [])))(); 10 let VoidToString = () => (VoidToString = dart.constFn(dart.fnType(core.String, [ ])))();
11 node_modules.Callback = dart.typedef('Callback', () => dart.functionType(dart.vo id, [], {i: core.int})); 11 node_modules.Callback = dart.typedef('Callback', () => dart.fnTypeFuzzy(dart.voi d, [], {i: core.int}));
12 node_modules.A = class A extends core.Object {}; 12 node_modules.A = class A extends core.Object {};
13 node_modules._A = class _A extends core.Object {}; 13 node_modules._A = class _A extends core.Object {};
14 node_modules.B$ = dart.generic(T => { 14 node_modules.B$ = dart.generic(T => {
15 class B extends core.Object {} 15 class B extends core.Object {}
16 dart.addTypeTests(B); 16 dart.addTypeTests(B);
17 return B; 17 return B;
18 }); 18 });
19 node_modules.B = B(); 19 node_modules.B = B();
20 node_modules._B$ = dart.generic(T => { 20 node_modules._B$ = dart.generic(T => {
21 class _B extends core.Object {} 21 class _B extends core.Object {}
(...skipping 30 matching lines...) Expand all
52 return "abc"; 52 return "abc";
53 }, VoidToString())(); 53 }, VoidToString())();
54 }, 54 },
55 set lazyMutable(_) {} 55 set lazyMutable(_) {}
56 }); 56 });
57 dart.trackLibraries("node_modules", { 57 dart.trackLibraries("node_modules", {
58 "node_modules.dart": node_modules 58 "node_modules.dart": node_modules
59 }, null); 59 }, null);
60 // Exports: 60 // Exports:
61 exports.node_modules = node_modules; 61 exports.node_modules = node_modules;
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/map_keys.js ('k') | pkg/dev_compiler/test/codegen_expected/script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698