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

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

Issue 1182653002: Refactor runtime into libraries, better type reps (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Address comments 2 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/constructors.js ('k') | test/codegen/expect/dir/html_input_a.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('covariance', null, /* Imports */[ 1 dart_library.library('covariance', null, /* Imports */[
2 "dart_runtime/dart",
2 'dart/core' 3 'dart/core'
3 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
4 ], function(exports, core) { 5 ], function(exports, dart, core) {
5 'use strict'; 6 'use strict';
7 let dartx = dart.dartx;
6 let _t = Symbol('_t'); 8 let _t = Symbol('_t');
7 let Foo$ = dart.generic(function(T) { 9 let Foo$ = dart.generic(function(T) {
8 class Foo extends core.Object { 10 class Foo extends core.Object {
9 Foo() { 11 Foo() {
10 this[_t] = null; 12 this[_t] = null;
11 } 13 }
12 add(t) { 14 add(t) {
13 dart.as(t, T); 15 dart.as(t, T);
14 this[_t] = t; 16 this[_t] = t;
15 } 17 }
(...skipping 27 matching lines...) Expand all
43 let foo = new Bar(); 45 let foo = new Bar();
44 foo.add('hi'); 46 foo.add('hi');
45 } 47 }
46 dart.fn(main); 48 dart.fn(main);
47 // Exports: 49 // Exports:
48 exports.Foo$ = Foo$; 50 exports.Foo$ = Foo$;
49 exports.Foo = Foo; 51 exports.Foo = Foo;
50 exports.Bar = Bar; 52 exports.Bar = Bar;
51 exports.main = main; 53 exports.main = main;
52 }); 54 });
OLDNEW
« no previous file with comments | « test/codegen/expect/constructors.js ('k') | test/codegen/expect/dir/html_input_a.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698