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 51 52 53 54 55 56 57 58 59 60 61
|
=== tests/cases/compiler/constructorOverloads6.ts ===
declare class FooBase {
>FooBase : Symbol(FooBase, Decl(constructorOverloads6.ts, 0, 0))
constructor(s: string);
>s : Symbol(s, Decl(constructorOverloads6.ts, 1, 16))
constructor(n: number);
>n : Symbol(n, Decl(constructorOverloads6.ts, 2, 16))
constructor(x: any) {
>x : Symbol(x, Decl(constructorOverloads6.ts, 3, 16))
}
bar1():void;
>bar1 : Symbol(FooBase.bar1, Decl(constructorOverloads6.ts, 5, 5))
}
declare class Foo extends FooBase {
>Foo : Symbol(Foo, Decl(constructorOverloads6.ts, 7, 1))
>FooBase : Symbol(FooBase, Decl(constructorOverloads6.ts, 0, 0))
constructor(s: string);
>s : Symbol(s, Decl(constructorOverloads6.ts, 10, 16))
constructor(n: number);
>n : Symbol(n, Decl(constructorOverloads6.ts, 11, 16))
constructor(x: any, y?:any);
>x : Symbol(x, Decl(constructorOverloads6.ts, 12, 16))
>y : Symbol(y, Decl(constructorOverloads6.ts, 12, 23))
bar1():void;
>bar1 : Symbol(Foo.bar1, Decl(constructorOverloads6.ts, 12, 32))
}
var f1 = new Foo("hey");
>f1 : Symbol(f1, Decl(constructorOverloads6.ts, 17, 3))
>Foo : Symbol(Foo, Decl(constructorOverloads6.ts, 7, 1))
var f2 = new Foo(0);
>f2 : Symbol(f2, Decl(constructorOverloads6.ts, 18, 3))
>Foo : Symbol(Foo, Decl(constructorOverloads6.ts, 7, 1))
var f3 = new Foo(f1);
>f3 : Symbol(f3, Decl(constructorOverloads6.ts, 19, 3))
>Foo : Symbol(Foo, Decl(constructorOverloads6.ts, 7, 1))
>f1 : Symbol(f1, Decl(constructorOverloads6.ts, 17, 3))
var f4 = new Foo([f1,f2,f3]);
>f4 : Symbol(f4, Decl(constructorOverloads6.ts, 20, 3))
>Foo : Symbol(Foo, Decl(constructorOverloads6.ts, 7, 1))
>f1 : Symbol(f1, Decl(constructorOverloads6.ts, 17, 3))
>f2 : Symbol(f2, Decl(constructorOverloads6.ts, 18, 3))
>f3 : Symbol(f3, Decl(constructorOverloads6.ts, 19, 3))
f1.bar1();
>f1.bar1 : Symbol(Foo.bar1, Decl(constructorOverloads6.ts, 12, 32))
>f1 : Symbol(f1, Decl(constructorOverloads6.ts, 17, 3))
>bar1 : Symbol(Foo.bar1, Decl(constructorOverloads6.ts, 12, 32))
|