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

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

Issue 2869733006: Revert "Revert "fix #27256, track type bounds for generic functions"" (Closed)
Patch Set: 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 export const es6_modules = Object.create(null); 1 export const es6_modules = Object.create(null);
2 import { core, dart, dartx } from 'dart_sdk'; 2 import { core, dart, dartx } from 'dart_sdk';
3 let B = () => (B = dart.constFn(es6_modules.B$()))(); 3 let B = () => (B = dart.constFn(es6_modules.B$()))();
4 let _B = () => (_B = dart.constFn(es6_modules._B$()))(); 4 let _B = () => (_B = dart.constFn(es6_modules._B$()))();
5 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionTyp e(dart.dynamic, [])))(); 5 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.fnType(dart.dynamic , [])))();
6 let VoidToString = () => (VoidToString = dart.constFn(dart.definiteFunctionType( core.String, [])))(); 6 let VoidToString = () => (VoidToString = dart.constFn(dart.fnType(core.String, [ ])))();
7 es6_modules.Callback = dart.typedef('Callback', () => dart.functionType(dart.voi d, [], {i: core.int})); 7 es6_modules.Callback = dart.typedef('Callback', () => dart.fnTypeFuzzy(dart.void , [], {i: core.int}));
8 es6_modules.A = class A extends core.Object {}; 8 es6_modules.A = class A extends core.Object {};
9 es6_modules._A = class _A extends core.Object {}; 9 es6_modules._A = class _A extends core.Object {};
10 es6_modules.B$ = dart.generic(T => { 10 es6_modules.B$ = dart.generic(T => {
11 class B extends core.Object {} 11 class B extends core.Object {}
12 dart.addTypeTests(B); 12 dart.addTypeTests(B);
13 return B; 13 return B;
14 }); 14 });
15 es6_modules.B = B(); 15 es6_modules.B = B();
16 es6_modules._B$ = dart.generic(T => { 16 es6_modules._B$ = dart.generic(T => {
17 class _B extends core.Object {} 17 class _B extends core.Object {}
(...skipping 28 matching lines...) Expand all
46 return dart.fn(() => { 46 return dart.fn(() => {
47 core.print('lazyMutable'); 47 core.print('lazyMutable');
48 return "abc"; 48 return "abc";
49 }, VoidToString())(); 49 }, VoidToString())();
50 }, 50 },
51 set lazyMutable(_) {} 51 set lazyMutable(_) {}
52 }); 52 });
53 dart.trackLibraries("es6_modules", { 53 dart.trackLibraries("es6_modules", {
54 "es6_modules.dart": es6_modules 54 "es6_modules.dart": es6_modules
55 }, null); 55 }, null);
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/destructuring.js ('k') | pkg/dev_compiler/test/codegen_expected/map_keys.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698