// @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) { } }