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

Unified Diff: test/codegen/expect/covariance.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/constructors.js ('k') | test/codegen/expect/expect.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/covariance.js
diff --git a/test/codegen/expect/covariance.js b/test/codegen/expect/covariance.js
index 14ba50ee46fed579eb124a1cdbd94b5415e45846..e26dee94850a17d1435d4a473a1ae2c603c56a4d 100644
--- a/test/codegen/expect/covariance.js
+++ b/test/codegen/expect/covariance.js
@@ -9,7 +9,7 @@ dart_library.library('covariance', null, /* Imports */[
const _t = Symbol('_t');
covariance.Foo$ = dart.generic(T => {
class Foo extends core.Object {
- Foo() {
+ new() {
this[_t] = null;
}
add(t) {
@@ -30,8 +30,8 @@ dart_library.library('covariance', null, /* Imports */[
});
covariance.Foo = covariance.Foo$();
covariance.Bar = class Bar extends covariance.Foo$(core.int) {
- Bar() {
- super.Foo();
+ new() {
+ super.new();
}
add(x) {
core.print(`Bar.add got ${x}`);
« no previous file with comments | « test/codegen/expect/constructors.js ('k') | test/codegen/expect/expect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698