TypeScript/tests/baselines/reference/constructorOverloadsWithOptionalParameters.types

30 lines
439 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorOverloadsWithOptionalParameters.ts ===
class C {
>C : C
2014-08-15 23:33:16 +02:00
foo: string;
>foo : string
2014-08-15 23:33:16 +02:00
constructor(x?, y?: any[]);
>x : any
>y : any[]
2014-08-15 23:33:16 +02:00
constructor() {
}
}
class D<T> {
>D : D<T>
>T : T
2014-08-15 23:33:16 +02:00
foo: string;
>foo : string
2014-08-15 23:33:16 +02:00
constructor(x?, y?: any[]);
>x : any
>y : any[]
2014-08-15 23:33:16 +02:00
constructor() {
}
}