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:
commit
acf1804a2a
@ -975,7 +975,7 @@ class Rectangle {
|
|||||||
|
|
||||||
class Square extends Rectangle {
|
class Square extends Rectangle {
|
||||||
constructor(length) {
|
constructor(length) {
|
||||||
super(length, length);
|
super(length, width);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user