34 lines
636 B
Plaintext
34 lines
636 B
Plaintext
|
=== tests/cases/conformance/es6/restParameters/emitRestParametersMethod.ts ===
|
||
|
class C {
|
||
|
>C : C
|
||
|
|
||
|
constructor(name: string, ...rest) { }
|
||
|
>name : string
|
||
|
>rest : any[]
|
||
|
|
||
|
public bar(...rest) { }
|
||
|
>bar : (...rest: any[]) => void
|
||
|
>rest : any[]
|
||
|
|
||
|
public foo(x: number, ...rest) { }
|
||
|
>foo : (x: number, ...rest: any[]) => void
|
||
|
>x : number
|
||
|
>rest : any[]
|
||
|
}
|
||
|
|
||
|
class D {
|
||
|
>D : D
|
||
|
|
||
|
constructor(...rest) { }
|
||
|
>rest : any[]
|
||
|
|
||
|
public bar(...rest) { }
|
||
|
>bar : (...rest: any[]) => void
|
||
|
>rest : any[]
|
||
|
|
||
|
public foo(x: number, ...rest) { }
|
||
|
>foo : (x: number, ...rest: any[]) => void
|
||
|
>x : number
|
||
|
>rest : any[]
|
||
|
}
|