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

Side by Side Diff: test/codegen/expect/cascade.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/DeltaBlue.js ('k') | test/codegen/expect/constructors.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 cascade = dart.defineLibrary(cascade, {}); 1 var cascade = dart.defineLibrary(cascade, {});
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 = null; 7 this.x = null;
8 } 8 }
9 } 9 }
10 dart.setSignature(A, {});
11 function test_closure_with_mutate() { 10 function test_closure_with_mutate() {
12 let a = new A(); 11 let a = new A();
13 a.x = dart.fn(() => { 12 a.x = dart.fn(() => {
14 core.print("hi"); 13 core.print("hi");
15 a = null; 14 a = null;
16 }); 15 });
17 let _ = a; 16 let _ = a;
18 dart.dcall(_.x); 17 dart.dcall(_.x);
19 dart.dcall(_.x); 18 dart.dcall(_.x);
20 core.print(a); 19 core.print(a);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return a; 82 return a;
84 })()); 83 })());
85 } 84 }
86 dart.fn(test_increment, dart.void, []); 85 dart.fn(test_increment, dart.void, []);
87 let Base$ = dart.generic(function(T) { 86 let Base$ = dart.generic(function(T) {
88 class Base extends core.Object { 87 class Base extends core.Object {
89 Base() { 88 Base() {
90 this.x = dart.setType([], core.List$(T)); 89 this.x = dart.setType([], core.List$(T));
91 } 90 }
92 } 91 }
93 dart.setSignature(Base, {});
94 return Base; 92 return Base;
95 }); 93 });
96 let Base = Base$(); 94 let Base = Base$();
97 class Foo extends Base$(core.int) { 95 class Foo extends Base$(core.int) {
98 Foo() { 96 Foo() {
99 super.Base(); 97 super.Base();
100 } 98 }
101 test_final_field_generic(t) { 99 test_final_field_generic(t) {
102 this.x[core.$add](1); 100 this.x[core.$add](1);
103 this.x[core.$add](2); 101 this.x[core.$add](2);
(...skipping 11 matching lines...) Expand all
115 exports.test_mutate_inside_cascade = test_mutate_inside_cascade; 113 exports.test_mutate_inside_cascade = test_mutate_inside_cascade;
116 exports.test_mutate_outside_cascade = test_mutate_outside_cascade; 114 exports.test_mutate_outside_cascade = test_mutate_outside_cascade;
117 exports.test_VariableDeclaration_single = test_VariableDeclaration_single; 115 exports.test_VariableDeclaration_single = test_VariableDeclaration_single;
118 exports.test_VariableDeclaration_last = test_VariableDeclaration_last; 116 exports.test_VariableDeclaration_last = test_VariableDeclaration_last;
119 exports.test_VariableDeclaration_first = test_VariableDeclaration_first; 117 exports.test_VariableDeclaration_first = test_VariableDeclaration_first;
120 exports.test_increment = test_increment; 118 exports.test_increment = test_increment;
121 exports.Base$ = Base$; 119 exports.Base$ = Base$;
122 exports.Base = Base; 120 exports.Base = Base;
123 exports.Foo = Foo; 121 exports.Foo = Foo;
124 })(cascade, core); 122 })(cascade, core);
OLDNEW
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/constructors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698