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

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

Issue 1182653002: Refactor runtime into libraries, better type reps (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Add missing file 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 dart.library('covariance', null, /* Imports */[ 1 loader.library('covariance', null, /* Imports */[
2 "dart/dart_runtime",
3 "dart/dartx",
2 'dart/core' 4 'dart/core'
3 ], /* Lazy imports */[ 5 ], /* Lazy imports */[
4 ], function(exports, core) { 6 ], function(exports, dart, dartx, core) {
5 'use strict'; 7 'use strict';
6 let _t = Symbol('_t'); 8 let _t = Symbol('_t');
7 let Foo$ = dart.generic(function(T) { 9 let Foo$ = dart.generic(function(T) {
8 class Foo extends core.Object { 10 class Foo extends core.Object {
9 Foo() { 11 Foo() {
10 this[_t] = null; 12 this[_t] = null;
11 } 13 }
12 add(t) { 14 add(t) {
13 dart.as(t, T); 15 dart.as(t, T);
14 this[_t] = t; 16 this[_t] = t;
(...skipping 28 matching lines...) Expand all
43 let foo = new Bar(); 45 let foo = new Bar();
44 foo.add('hi'); 46 foo.add('hi');
45 } 47 }
46 dart.fn(main); 48 dart.fn(main);
47 // Exports: 49 // Exports:
48 exports.Foo$ = Foo$; 50 exports.Foo$ = Foo$;
49 exports.Foo = Foo; 51 exports.Foo = Foo;
50 exports.Bar = Bar; 52 exports.Bar = Bar;
51 exports.main = main; 53 exports.main = main;
52 }); 54 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698