TypeScript/tests/baselines/reference/emitDefaultParametersMethod.types
2015-04-15 16:44:20 -07:00

54 lines
992 B
Plaintext

=== tests/cases/conformance/es6/defaultParameters/emitDefaultParametersMethod.ts ===
class C {
>C : C
constructor(t: boolean, z: string, x: number, y = "hello") { }
>t : boolean
>z : string
>x : number
>y : string
>"hello" : string
public foo(x: string, t = false) { }
>foo : (x: string, t?: boolean) => void
>x : string
>t : boolean
>false : boolean
public foo1(x: string, t = false, ...rest) { }
>foo1 : (x: string, t?: boolean, ...rest: any[]) => void
>x : string
>t : boolean
>false : boolean
>rest : any[]
public bar(t = false) { }
>bar : (t?: boolean) => void
>t : boolean
>false : boolean
public boo(t = false, ...rest) { }
>boo : (t?: boolean, ...rest: any[]) => void
>t : boolean
>false : boolean
>rest : any[]
}
class D {
>D : D
constructor(y = "hello") { }
>y : string
>"hello" : string
}
class E {
>E : E
constructor(y = "hello", ...rest) { }
>y : string
>"hello" : string
>rest : any[]
}