TypeScript/tests/cases/conformance/es6/restParameters/emitRestParametersMethod.ts

14 lines
No EOL
264 B
TypeScript

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