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

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

Issue 1144303003: Use signature inheritance when method types are unchanged (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Remove empty signatures Created 5 years, 7 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/methods.js ('k') | test/codegen/expect/names.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 misc = dart.defineLibrary(misc, {}); 1 var misc = dart.defineLibrary(misc, {});
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 _Uninitialized extends core.Object { 5 class _Uninitialized extends core.Object {
6 _Uninitialized() { 6 _Uninitialized() {
7 } 7 }
8 } 8 }
9 dart.setSignature(_Uninitialized, {});
10 let UNINITIALIZED = dart.const(new _Uninitialized()); 9 let UNINITIALIZED = dart.const(new _Uninitialized());
11 let Generic$ = dart.generic(function(T) { 10 let Generic$ = dart.generic(function(T) {
12 class Generic extends core.Object { 11 class Generic extends core.Object {
13 get type() { 12 get type() {
14 return Generic$(); 13 return Generic$();
15 } 14 }
16 } 15 }
17 dart.setSignature(Generic, {});
18 return Generic; 16 return Generic;
19 }); 17 });
20 let Generic = Generic$(); 18 let Generic = Generic$();
21 function main() { 19 function main() {
22 core.print(dart.toString(1)); 20 core.print(dart.toString(1));
23 core.print(dart.toString(1.0)); 21 core.print(dart.toString(1.0));
24 core.print(dart.toString(1.1)); 22 core.print(dart.toString(1.1));
25 let x = 42; 23 let x = 42;
26 core.print(dart.equals(x, dart.dynamic)); 24 core.print(dart.equals(x, dart.dynamic));
27 core.print(dart.equals(x, Generic)); 25 core.print(dart.equals(x, Generic));
28 core.print(new (Generic$(core.int))().type); 26 core.print(new (Generic$(core.int))().type);
29 } 27 }
30 dart.fn(main); 28 dart.fn(main);
31 // Exports: 29 // Exports:
32 exports.UNINITIALIZED = UNINITIALIZED; 30 exports.UNINITIALIZED = UNINITIALIZED;
33 exports.Generic$ = Generic$; 31 exports.Generic$ = Generic$;
34 exports.Generic = Generic; 32 exports.Generic = Generic;
35 exports.main = main; 33 exports.main = main;
36 })(misc, core); 34 })(misc, core);
OLDNEW
« no previous file with comments | « test/codegen/expect/methods.js ('k') | test/codegen/expect/names.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698