| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |