30 lines
439 B
Text
30 lines
439 B
Text
|
=== tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorOverloadsWithOptionalParameters.ts ===
|
||
|
class C {
|
||
|
>C : C
|
||
|
|
||
|
foo: string;
|
||
|
>foo : string
|
||
|
|
||
|
constructor(x?, y?: any[]);
|
||
|
>x : any
|
||
|
>y : any[]
|
||
|
|
||
|
constructor() {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class D<T> {
|
||
|
>D : D<T>
|
||
|
>T : T
|
||
|
|
||
|
foo: string;
|
||
|
>foo : string
|
||
|
|
||
|
constructor(x?, y?: any[]);
|
||
|
>x : any
|
||
|
>y : any[]
|
||
|
|
||
|
constructor() {
|
||
|
}
|
||
|
}
|