45 lines
1.9 KiB
Text
45 lines
1.9 KiB
Text
=== tests/cases/conformance/es6/defaultParameters/emitDefaultParametersMethodES6.ts ===
|
|
class C {
|
|
>C : Symbol(C, Decl(emitDefaultParametersMethodES6.ts, 0, 0))
|
|
|
|
constructor(t: boolean, z: string, x: number, y = "hello") { }
|
|
>t : Symbol(t, Decl(emitDefaultParametersMethodES6.ts, 1, 16))
|
|
>z : Symbol(z, Decl(emitDefaultParametersMethodES6.ts, 1, 27))
|
|
>x : Symbol(x, Decl(emitDefaultParametersMethodES6.ts, 1, 38))
|
|
>y : Symbol(y, Decl(emitDefaultParametersMethodES6.ts, 1, 49))
|
|
|
|
public foo(x: string, t = false) { }
|
|
>foo : Symbol(foo, Decl(emitDefaultParametersMethodES6.ts, 1, 66))
|
|
>x : Symbol(x, Decl(emitDefaultParametersMethodES6.ts, 3, 15))
|
|
>t : Symbol(t, Decl(emitDefaultParametersMethodES6.ts, 3, 25))
|
|
|
|
public foo1(x: string, t = false, ...rest) { }
|
|
>foo1 : Symbol(foo1, Decl(emitDefaultParametersMethodES6.ts, 3, 40))
|
|
>x : Symbol(x, Decl(emitDefaultParametersMethodES6.ts, 4, 16))
|
|
>t : Symbol(t, Decl(emitDefaultParametersMethodES6.ts, 4, 26))
|
|
>rest : Symbol(rest, Decl(emitDefaultParametersMethodES6.ts, 4, 37))
|
|
|
|
public bar(t = false) { }
|
|
>bar : Symbol(bar, Decl(emitDefaultParametersMethodES6.ts, 4, 50))
|
|
>t : Symbol(t, Decl(emitDefaultParametersMethodES6.ts, 5, 15))
|
|
|
|
public boo(t = false, ...rest) { }
|
|
>boo : Symbol(boo, Decl(emitDefaultParametersMethodES6.ts, 5, 29))
|
|
>t : Symbol(t, Decl(emitDefaultParametersMethodES6.ts, 6, 15))
|
|
>rest : Symbol(rest, Decl(emitDefaultParametersMethodES6.ts, 6, 25))
|
|
}
|
|
|
|
class D {
|
|
>D : Symbol(D, Decl(emitDefaultParametersMethodES6.ts, 7, 1))
|
|
|
|
constructor(y = "hello") { }
|
|
>y : Symbol(y, Decl(emitDefaultParametersMethodES6.ts, 10, 16))
|
|
}
|
|
|
|
class E {
|
|
>E : Symbol(E, Decl(emitDefaultParametersMethodES6.ts, 11, 1))
|
|
|
|
constructor(y = "hello", ...rest) { }
|
|
>y : Symbol(y, Decl(emitDefaultParametersMethodES6.ts, 14, 16))
|
|
>rest : Symbol(rest, Decl(emitDefaultParametersMethodES6.ts, 14, 28))
|
|
}
|