| OLD | NEW | 
|---|
| 1 var fieldtest = dart.defineLibrary(fieldtest, {}); | 1 var fieldtest = dart.defineLibrary(fieldtest, {}); | 
| 2 var core = dart.import(core); | 2 var core = dart.import(core); | 
| 3 (function(exports, core) { | 3 (function(exports, core) { | 
| 4   'use strict'; | 4   'use strict'; | 
| 5   class A extends core.Object { | 5   class A extends core.Object { | 
| 6     A() { | 6     A() { | 
| 7       this.x = 42; | 7       this.x = 42; | 
| 8     } | 8     } | 
| 9   } | 9   } | 
| 10   let B$ = dart.generic(function(T) { | 10   let B$ = dart.generic(function(T) { | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 58       return 1; | 58       return 1; | 
| 59     } | 59     } | 
| 60   } | 60   } | 
| 61   class Derived extends BaseWithGetter { | 61   class Derived extends BaseWithGetter { | 
| 62     Derived() { | 62     Derived() { | 
| 63       this.foo = 2; | 63       this.foo = 2; | 
| 64       this.bar = 3; | 64       this.bar = 3; | 
| 65     } | 65     } | 
| 66   } | 66   } | 
| 67   dart.virtualField(Derived, 'foo'); | 67   dart.virtualField(Derived, 'foo'); | 
|  | 68   let Generic$ = dart.generic(function(T) { | 
|  | 69     class Generic extends core.Object { | 
|  | 70       foo(t) { | 
|  | 71         dart.as(t, T); | 
|  | 72         return core.print(dart.notNull(Generic$().bar) + dart.notNull(t)); | 
|  | 73       } | 
|  | 74     } | 
|  | 75     return Generic; | 
|  | 76   }); | 
|  | 77   let Generic = Generic$(); | 
|  | 78   Generic.bar = 'hello'; | 
| 68   // Function main: () → void | 79   // Function main: () → void | 
| 69   function main() { | 80   function main() { | 
| 70     let a = new A(); | 81     let a = new A(); | 
| 71     foo(a); | 82     foo(a); | 
| 72     bar(a); | 83     bar(a); | 
| 73     core.print(baz(a)); | 84     core.print(baz(a)); | 
|  | 85     core.print(new (Generic$(core.String))().foo(' world')); | 
| 74   } | 86   } | 
| 75   // Exports: | 87   // Exports: | 
| 76   exports.A = A; | 88   exports.A = A; | 
| 77   exports.B$ = B$; | 89   exports.B$ = B$; | 
| 78   exports.B = B; | 90   exports.B = B; | 
| 79   exports.foo = foo; | 91   exports.foo = foo; | 
| 80   exports.bar = bar; | 92   exports.bar = bar; | 
| 81   exports.baz = baz; | 93   exports.baz = baz; | 
| 82   exports.compute = compute; | 94   exports.compute = compute; | 
| 83   exports.BaseWithGetter = BaseWithGetter; | 95   exports.BaseWithGetter = BaseWithGetter; | 
| 84   exports.Derived = Derived; | 96   exports.Derived = Derived; | 
|  | 97   exports.Generic$ = Generic$; | 
|  | 98   exports.Generic = Generic; | 
| 85   exports.main = main; | 99   exports.main = main; | 
| 86 })(fieldtest, core); | 100 })(fieldtest, core); | 
| OLD | NEW | 
|---|