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