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
16 lines
302 B
JavaScript
16 lines
302 B
JavaScript
class C extends class {
|
|
static add(x, y) {
|
|
return x + y; // Algebraic addition
|
|
}
|
|
}
|
|
{
|
|
static add(x, y) {
|
|
return [x, y]; // Pair construction
|
|
}
|
|
static addOne = super.add(1, ?);
|
|
}
|
|
|
|
expect(C.addOne(5)).toEqual(6);
|
|
expect(C.addOne.length).toEqual(1);
|
|
expect(C.addOne.name).toEqual("add");
|