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

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: 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
OLDNEW
1 var covariance = dart.defineLibrary(covariance, {}); 1 dart.defineLibrary('covariance');
2 var core = dart.import(core); 2 dart.import('core');
3 (function(exports, core) { 3 (function(exports, core) {
4 'use strict'; 4 'use strict';
5 let _t = Symbol('_t'); 5 let _t = Symbol('_t');
6 let Foo$ = dart.generic(function(T) { 6 let Foo$ = dart.generic(function(T) {
7 class Foo extends core.Object { 7 class Foo extends core.Object {
8 Foo() { 8 Foo() {
9 this[_t] = null; 9 this[_t] = null;
10 } 10 }
11 add(t) { 11 add(t) {
12 dart.as(t, T); 12 dart.as(t, T);
(...skipping 29 matching lines...) Expand all
42 let foo = new Bar(); 42 let foo = new Bar();
43 foo.add('hi'); 43 foo.add('hi');
44 } 44 }
45 dart.fn(main); 45 dart.fn(main);
46 // Exports: 46 // Exports:
47 exports.Foo$ = Foo$; 47 exports.Foo$ = Foo$;
48 exports.Foo = Foo; 48 exports.Foo = Foo;
49 exports.Bar = Bar; 49 exports.Bar = Bar;
50 exports.main = main; 50 exports.main = main;
51 })(covariance, core); 51 })(covariance, core);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698