2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorOverloadsWithOptionalParameters.ts ===
|
|
|
|
class C {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(constructorOverloadsWithOptionalParameters.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
foo: string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : string, Symbol(foo, Decl(constructorOverloadsWithOptionalParameters.ts, 0, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
constructor(x?, y?: any[]);
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : any, Symbol(x, Decl(constructorOverloadsWithOptionalParameters.ts, 2, 16))
|
|
|
|
>y : any[], Symbol(y, Decl(constructorOverloadsWithOptionalParameters.ts, 2, 19))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class D<T> {
|
2015-04-13 23:01:57 +02:00
|
|
|
>D : D<T>, Symbol(D, Decl(constructorOverloadsWithOptionalParameters.ts, 5, 1))
|
|
|
|
>T : T, Symbol(T, Decl(constructorOverloadsWithOptionalParameters.ts, 7, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
foo: string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : string, Symbol(foo, Decl(constructorOverloadsWithOptionalParameters.ts, 7, 12))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
constructor(x?, y?: any[]);
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : any, Symbol(x, Decl(constructorOverloadsWithOptionalParameters.ts, 9, 16))
|
|
|
|
>y : any[], Symbol(y, Decl(constructorOverloadsWithOptionalParameters.ts, 9, 19))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
}
|