mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
19 lines
234 B
JavaScript
19 lines
234 B
JavaScript
// @flow
|
|
|
|
// Adapted from https://github.com/facebook/flow/issues/3443
|
|
|
|
class A {
|
|
f(...args: any[]) {}
|
|
}
|
|
|
|
class B extends A {
|
|
f(...args) {
|
|
this.f(...args);
|
|
}
|
|
}
|
|
|
|
function foo(...args) {
|
|
foo(1, ...args);
|
|
}
|
|
foo(123);
|