swc/crates/swc_ecma_parser/tests/tsc/emitRestParametersMethodES6.ts

15 lines
252 B
TypeScript
Raw Normal View History

// @target: es6
class C {
constructor(name: string, ...rest) { }
public bar(...rest) { }
public foo(x: number, ...rest) { }
}
class D {
constructor(...rest) { }
public bar(...rest) { }
public foo(x: number, ...rest) { }
}