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

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

Issue 1122133003: fixes #157, renaming local library identifiers if needed. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebase and format Created 5 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
« 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 var covariance; 1 var covariance = dart.defineLibrary(covariance, {});
2 (function(exports) { 2 var core = dart.import(core);
3 (function(exports, core) {
3 'use strict'; 4 'use strict';
4 let _t = Symbol('_t'); 5 let _t = Symbol('_t');
5 let Foo$ = dart.generic(function(T) { 6 let Foo$ = dart.generic(function(T) {
6 class Foo extends core.Object { 7 class Foo extends core.Object {
7 Foo() { 8 Foo() {
8 this[_t] = null; 9 this[_t] = null;
9 } 10 }
10 add(t) { 11 add(t) {
11 dart.as(t, T); 12 dart.as(t, T);
12 this[_t] = t; 13 this[_t] = t;
(...skipping 18 matching lines...) Expand all
31 // Function main: () → dynamic 32 // Function main: () → dynamic
32 function main() { 33 function main() {
33 let foo = new Bar(); 34 let foo = new Bar();
34 foo.add('hi'); 35 foo.add('hi');
35 } 36 }
36 // Exports: 37 // Exports:
37 exports.Foo$ = Foo$; 38 exports.Foo$ = Foo$;
38 exports.Foo = Foo; 39 exports.Foo = Foo;
39 exports.Bar = Bar; 40 exports.Bar = Bar;
40 exports.main = main; 41 exports.main = main;
41 })(covariance || (covariance = {})); 42 })(covariance, core);
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