1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
=== tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues.ts ===
class C {
>C : Symbol(C, Decl(constructorImplementationWithDefaultValues.ts, 0, 0))
constructor(x);
>x : Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 1, 16))
constructor(x = 1) {
>x : Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 2, 16))
var y = x;
>y : Symbol(y, Decl(constructorImplementationWithDefaultValues.ts, 3, 11))
>x : Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 2, 16))
}
}
class D<T> {
>D : Symbol(D, Decl(constructorImplementationWithDefaultValues.ts, 5, 1))
>T : Symbol(T, Decl(constructorImplementationWithDefaultValues.ts, 7, 8))
constructor(x);
>x : Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 8, 16))
constructor(x:T = null) {
>x : Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 9, 16))
>T : Symbol(T, Decl(constructorImplementationWithDefaultValues.ts, 7, 8))
var y = x;
>y : Symbol(y, Decl(constructorImplementationWithDefaultValues.ts, 10, 11))
>x : Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 9, 16))
}
}
class E<T extends Date> {
>E : Symbol(E, Decl(constructorImplementationWithDefaultValues.ts, 12, 1))
>T : Symbol(T, Decl(constructorImplementationWithDefaultValues.ts, 14, 8))
>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --))
constructor(x);
>x : Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 15, 16))
constructor(x: T = null) {
>x : Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 16, 16))
>T : Symbol(T, Decl(constructorImplementationWithDefaultValues.ts, 14, 8))
var y = x;
>y : Symbol(y, Decl(constructorImplementationWithDefaultValues.ts, 17, 11))
>x : Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 16, 16))
}
}
|