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

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

Issue 1145243013: Check for duplicate library names (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments 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 var covariance = dart.defineLibrary(covariance, {}); 1 dart.library('covariance', null, /* Imports */[
2 var core = dart.import(core); 2 'dart/core'
3 (function(exports, core) { 3 ], /* Lazy imports */[
4 ], function(exports, core) {
4 'use strict'; 5 'use strict';
5 let _t = Symbol('_t'); 6 let _t = Symbol('_t');
6 let Foo$ = dart.generic(function(T) { 7 let Foo$ = dart.generic(function(T) {
7 class Foo extends core.Object { 8 class Foo extends core.Object {
8 Foo() { 9 Foo() {
9 this[_t] = null; 10 this[_t] = null;
10 } 11 }
11 add(t) { 12 add(t) {
12 dart.as(t, T); 13 dart.as(t, T);
13 this[_t] = t; 14 this[_t] = t;
(...skipping 27 matching lines...) Expand all
41 function main() { 42 function main() {
42 let foo = new Bar(); 43 let foo = new Bar();
43 foo.add('hi'); 44 foo.add('hi');
44 } 45 }
45 dart.fn(main); 46 dart.fn(main);
46 // Exports: 47 // Exports:
47 exports.Foo$ = Foo$; 48 exports.Foo$ = Foo$;
48 exports.Foo = Foo; 49 exports.Foo = Foo;
49 exports.Bar = Bar; 50 exports.Bar = Bar;
50 exports.main = main; 51 exports.main = main;
51 })(covariance, core); 52 });
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