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

Unified Diff: test/codegen/expect/cascade.js

Issue 1965213003: simplify constructors, fixes #564 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/closure.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/cascade.js
diff --git a/test/codegen/expect/cascade.js b/test/codegen/expect/cascade.js
index 7aed8e3e06de41251a59dfd895882225959ce30a..57db11730e984a33770d487c657063ffdeae3e39 100644
--- a/test/codegen/expect/cascade.js
+++ b/test/codegen/expect/cascade.js
@@ -7,7 +7,7 @@ dart_library.library('cascade', null, /* Imports */[
const dartx = dart_sdk.dartx;
const cascade = Object.create(null);
cascade.A = class A extends core.Object {
- A() {
+ new() {
this.x = null;
}
};
@@ -89,7 +89,7 @@ dart_library.library('cascade', null, /* Imports */[
dart.fn(cascade.test_increment, dart.void, []);
cascade.Base$ = dart.generic(T => {
class Base extends core.Object {
- Base() {
+ new() {
this.x = dart.list([], T);
}
}
@@ -97,8 +97,8 @@ dart_library.library('cascade', null, /* Imports */[
});
cascade.Base = cascade.Base$();
cascade.Foo = class Foo extends cascade.Base$(core.int) {
- Foo() {
- super.Base();
+ new() {
+ super.new();
}
test_final_field_generic(t) {
this.x[dartx.add](1);
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/closure.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698