34 lines
1.3 KiB
Text
34 lines
1.3 KiB
Text
=== tests/cases/conformance/es6/restParameters/emitRestParametersMethodES6.ts ===
|
|
class C {
|
|
>C : Symbol(C, Decl(emitRestParametersMethodES6.ts, 0, 0))
|
|
|
|
constructor(name: string, ...rest) { }
|
|
>name : Symbol(name, Decl(emitRestParametersMethodES6.ts, 1, 16))
|
|
>rest : Symbol(rest, Decl(emitRestParametersMethodES6.ts, 1, 29))
|
|
|
|
public bar(...rest) { }
|
|
>bar : Symbol(bar, Decl(emitRestParametersMethodES6.ts, 1, 42))
|
|
>rest : Symbol(rest, Decl(emitRestParametersMethodES6.ts, 3, 15))
|
|
|
|
public foo(x: number, ...rest) { }
|
|
>foo : Symbol(foo, Decl(emitRestParametersMethodES6.ts, 3, 27))
|
|
>x : Symbol(x, Decl(emitRestParametersMethodES6.ts, 4, 15))
|
|
>rest : Symbol(rest, Decl(emitRestParametersMethodES6.ts, 4, 25))
|
|
}
|
|
|
|
class D {
|
|
>D : Symbol(D, Decl(emitRestParametersMethodES6.ts, 5, 1))
|
|
|
|
constructor(...rest) { }
|
|
>rest : Symbol(rest, Decl(emitRestParametersMethodES6.ts, 8, 16))
|
|
|
|
public bar(...rest) { }
|
|
>bar : Symbol(bar, Decl(emitRestParametersMethodES6.ts, 8, 28))
|
|
>rest : Symbol(rest, Decl(emitRestParametersMethodES6.ts, 10, 15))
|
|
|
|
public foo(x: number, ...rest) { }
|
|
>foo : Symbol(foo, Decl(emitRestParametersMethodES6.ts, 10, 27))
|
|
>x : Symbol(x, Decl(emitRestParametersMethodES6.ts, 11, 15))
|
|
>rest : Symbol(rest, Decl(emitRestParametersMethodES6.ts, 11, 25))
|
|
}
|
|
|