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

Unified Diff: test/codegen/expect/closure.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/cascade.js ('k') | test/codegen/expect/constructors.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/closure.js
diff --git a/test/codegen/expect/closure.js b/test/codegen/expect/closure.js
index ee1e529031714594e9415a2a258f531365a6964a..2475aa7a80d6f614b70bbc0c09666d0876b0449f 100644
--- a/test/codegen/expect/closure.js
+++ b/test/codegen/expect/closure.js
@@ -17,7 +17,7 @@ closure.Foo$ = dart.generic(T => {
static some_static_constant: string;
static some_static_final: string;
static some_static_var: string;
- Foo(i: number, v: T) {
+ new(i: number, v: T) {
this.i = i;
this.v = v;
this.b = null;
@@ -52,7 +52,7 @@ closure.Foo$ = dart.generic(T => {
}
dart.setSignature(Foo, {
constructors: () => ({
- Foo: [closure.Foo$(T), [core.int, T]],
+ new: [closure.Foo$(T), [core.int, T]],
build: [closure.Foo$(T), []]
}),
methods: () => ({
@@ -78,12 +78,12 @@ closure.Foo.some_static_final = "abc";
closure.Foo.some_static_var = "abc";
closure.Bar = class Bar extends core.Object {};
closure.Baz = class Baz extends dart.mixin(closure.Foo$(core.int), closure.Bar) {
- Baz(i: number) {
- super.Foo(i, 123);
+ new(i: number) {
+ super.new(i, 123);
}
};
dart.setSignature(closure.Baz, {
- constructors: () => ({Baz: [closure.Baz, [core.int]]})
+ constructors: () => ({new: [closure.Baz, [core.int]]})
});
closure.main = function(args): void {
};
« no previous file with comments | « test/codegen/expect/cascade.js ('k') | test/codegen/expect/constructors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698