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

Side by Side Diff: test/codegen/expect/functions.js

Issue 1195523002: Handle dynamic as bottom inside of function type reps (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Fix typo in comment Created 5 years, 6 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
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | test/codegen/expect/methods.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('functions', null, /* Imports */[ 1 dart_library.library('functions', null, /* Imports */[
2 "dart_runtime/dart", 2 "dart_runtime/dart",
3 'dart/core' 3 'dart/core'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 ], function(exports, dart, core) { 5 ], function(exports, dart, core) {
6 'use strict'; 6 'use strict';
7 let dartx = dart.dartx; 7 let dartx = dart.dartx;
8 function bootstrap() { 8 function bootstrap() {
9 return dart.list([new Foo()], Foo); 9 return dart.list([new Foo()], Foo);
10 } 10 }
11 dart.fn(bootstrap, () => dart.functionType(core.List$(Foo), [])); 11 dart.fn(bootstrap, () => dart.definiteFunctionType(core.List$(Foo), []));
12 let A2B$ = dart.generic(function(A, B) { 12 let A2B$ = dart.generic(function(A, B) {
13 let A2B = dart.typedef('A2B', () => dart.functionType(B, [A])); 13 let A2B = dart.typedef('A2B', () => dart.functionType(B, [A]));
14 return A2B; 14 return A2B;
15 }); 15 });
16 let A2B = A2B$(); 16 let A2B = A2B$();
17 function id(f) { 17 function id(f) {
18 return f; 18 return f;
19 } 19 }
20 dart.fn(id, () => dart.functionType(A2B$(Foo, Foo), [A2B$(Foo, Foo)])); 20 dart.fn(id, () => dart.definiteFunctionType(A2B$(Foo, Foo), [A2B$(Foo, Foo)])) ;
21 class Foo extends core.Object {} 21 class Foo extends core.Object {}
22 function main() { 22 function main() {
23 core.print(bootstrap()[dartx.get](0)); 23 core.print(bootstrap()[dartx.get](0));
24 } 24 }
25 dart.fn(main, dart.void, []); 25 dart.fn(main, dart.void, []);
26 // Exports: 26 // Exports:
27 exports.bootstrap = bootstrap; 27 exports.bootstrap = bootstrap;
28 exports.A2B$ = A2B$; 28 exports.A2B$ = A2B$;
29 exports.A2B = A2B; 29 exports.A2B = A2B;
30 exports.id = id; 30 exports.id = id;
31 exports.Foo = Foo; 31 exports.Foo = Foo;
32 exports.main = main; 32 exports.main = main;
33 }); 33 });
OLDNEW
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | test/codegen/expect/methods.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698