mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* breaking(partial-app): require version option * chore: update yarn.lock * test: add case for empty version * update artifacts
24 lines
334 B
JavaScript
24 lines
334 B
JavaScript
class Sign {
|
|
constructor(sign) {
|
|
this.sign = sign;
|
|
}
|
|
getSign() {
|
|
return this.sign;
|
|
}
|
|
}
|
|
|
|
class Partial extends Sign {
|
|
constructor(sign) {
|
|
super(sign);
|
|
this.compare = this.compare(?, ?);
|
|
}
|
|
getSign() {
|
|
return this.sign * 2;
|
|
}
|
|
compare(a, b) {
|
|
if(a > b){
|
|
return super.getSign();
|
|
}
|
|
}
|
|
}
|