TypeScript/tests/baselines/reference/callWithSpreadES6.symbols
2015-08-19 17:23:14 -07:00

161 lines
5.8 KiB
Plaintext

=== tests/cases/conformance/expressions/functionCalls/callWithSpreadES6.ts ===
interface X {
>X : Symbol(X, Decl(callWithSpreadES6.ts, 0, 0))
foo(x: number, y: number, ...z: string[]);
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 1, 13))
>x : Symbol(x, Decl(callWithSpreadES6.ts, 2, 8))
>y : Symbol(y, Decl(callWithSpreadES6.ts, 2, 18))
>z : Symbol(z, Decl(callWithSpreadES6.ts, 2, 29))
}
function foo(x: number, y: number, ...z: string[]) {
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 3, 1))
>x : Symbol(x, Decl(callWithSpreadES6.ts, 5, 13))
>y : Symbol(y, Decl(callWithSpreadES6.ts, 5, 23))
>z : Symbol(z, Decl(callWithSpreadES6.ts, 5, 34))
}
var a: string[];
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
var z: number[];
>z : Symbol(z, Decl(callWithSpreadES6.ts, 9, 3))
var obj: X;
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>X : Symbol(X, Decl(callWithSpreadES6.ts, 0, 0))
var xa: X[];
>xa : Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3))
>X : Symbol(X, Decl(callWithSpreadES6.ts, 0, 0))
foo(1, 2, "abc");
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 3, 1))
foo(1, 2, ...a);
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 3, 1))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
foo(1, 2, ...a, "abc");
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 3, 1))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
obj.foo(1, 2, "abc");
>obj.foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
obj.foo(1, 2, ...a);
>obj.foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
obj.foo(1, 2, ...a, "abc");
>obj.foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
(obj.foo)(1, 2, "abc");
>obj.foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
(obj.foo)(1, 2, ...a);
>obj.foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
(obj.foo)(1, 2, ...a, "abc");
>obj.foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
xa[1].foo(1, 2, "abc");
>xa[1].foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>xa : Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
xa[1].foo(1, 2, ...a);
>xa[1].foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>xa : Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
xa[1].foo(1, 2, ...a, "abc");
>xa[1].foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>xa : Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
(<Function>xa[1].foo)(...[1, 2, "abc"]);
>Function : Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11), Decl(lib.d.ts, 4009, 1))
>xa[1].foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>xa : Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
class C {
>C : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
constructor(x: number, y: number, ...z: string[]) {
>x : Symbol(x, Decl(callWithSpreadES6.ts, 32, 16))
>y : Symbol(y, Decl(callWithSpreadES6.ts, 32, 26))
>z : Symbol(z, Decl(callWithSpreadES6.ts, 32, 37))
this.foo(x, y);
>this.foo : Symbol(foo, Decl(callWithSpreadES6.ts, 35, 5))
>this : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 35, 5))
>x : Symbol(x, Decl(callWithSpreadES6.ts, 32, 16))
>y : Symbol(y, Decl(callWithSpreadES6.ts, 32, 26))
this.foo(x, y, ...z);
>this.foo : Symbol(foo, Decl(callWithSpreadES6.ts, 35, 5))
>this : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 35, 5))
>x : Symbol(x, Decl(callWithSpreadES6.ts, 32, 16))
>y : Symbol(y, Decl(callWithSpreadES6.ts, 32, 26))
>z : Symbol(z, Decl(callWithSpreadES6.ts, 32, 37))
}
foo(x: number, y: number, ...z: string[]) {
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 35, 5))
>x : Symbol(x, Decl(callWithSpreadES6.ts, 36, 8))
>y : Symbol(y, Decl(callWithSpreadES6.ts, 36, 18))
>z : Symbol(z, Decl(callWithSpreadES6.ts, 36, 29))
}
}
class D extends C {
>D : Symbol(D, Decl(callWithSpreadES6.ts, 38, 1))
>C : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
constructor() {
super(1, 2);
>super : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
super(1, 2, ...a);
>super : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
}
foo() {
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 44, 5))
super.foo(1, 2);
>super.foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>super : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
>foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
super.foo(1, 2, ...a);
>super.foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>super : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
>foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
}
}