1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 19:22:21 +00:00

Merge pull request #810 from Sakuraine/patch-1

super(length, length) => super(length, width);
This commit is contained in:
Ruan YiFeng 2019-02-13 12:10:37 +08:00 committed by GitHub
commit acf1804a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -975,7 +975,7 @@ class Rectangle {
class Square extends Rectangle {
constructor(length) {
super(length, length);
super(length, width);
}
}