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

Side by Side Diff: pkg/dev_compiler/test/codegen_expected/varargs.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 define(['dart_sdk'], function(dart_sdk) { 1 define(['dart_sdk'], function(dart_sdk) {
2 'use strict'; 2 'use strict';
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 varargs = Object.create(null); 6 const varargs = Object.create(null);
7 const src__varargs = Object.create(null); 7 const src__varargs = Object.create(null);
8 let dynamicAnddynamicTodynamic = () => (dynamicAnddynamicTodynamic = dart.cons tFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dart.dynamic])))(); 8 let dynamicAnddynamicTodynamic = () => (dynamicAnddynamicTodynamic = dart.cons tFn(dart.fnType(dart.dynamic, [dart.dynamic, dart.dynamic])))();
9 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))(); 9 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.fnType(dart .dynamic, [dart.dynamic])))();
10 varargs.varargsTest = function(x, ...others) { 10 varargs.varargsTest = function(x, ...others) {
11 let args = [1, others]; 11 let args = [1, others];
12 dart.dcall(x, ...args); 12 dart.dcall(x, ...args);
13 }; 13 };
14 dart.fn(varargs.varargsTest, dynamicAnddynamicTodynamic()); 14 dart.fn(varargs.varargsTest, dynamicAnddynamicTodynamic());
15 varargs.varargsTest2 = function(x, ...others) { 15 varargs.varargsTest2 = function(x, ...others) {
16 let args = [1, others]; 16 let args = [1, others];
17 dart.dcall(x, ...args); 17 dart.dcall(x, ...args);
18 }; 18 };
19 dart.fn(varargs.varargsTest2, dynamicAnddynamicTodynamic()); 19 dart.fn(varargs.varargsTest2, dynamicAnddynamicTodynamic());
(...skipping 13 matching lines...) Expand all
33 dart.trackLibraries("varargs", { 33 dart.trackLibraries("varargs", {
34 "varargs.dart": varargs, 34 "varargs.dart": varargs,
35 "package:js/src/varargs.dart": src__varargs 35 "package:js/src/varargs.dart": src__varargs
36 }, null); 36 }, null);
37 // Exports: 37 // Exports:
38 return { 38 return {
39 varargs: varargs, 39 varargs: varargs,
40 src__varargs: src__varargs 40 src__varargs: src__varargs
41 }; 41 };
42 }); 42 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698