TypeScript/tests/baselines/reference/callWithSpreadES6.symbols
Yui 11887ccc29 Adjustmodularize lib
* Merge array, function, math, number, object, regexp, string into es2015.core

* Update baselines

* Add node.d.ts; need to fix head of the output

* Update unittests from add node as an option for --lib

* Move interface declaration into NodeJS namespace

* Add console into Node.d.ts

* Add compiler baseline-tests for using --lib node

* Change name from full.es2015 to es6. This is a es6 library file used when no --lib is specified and --target is es6

* Remove add node.d.ts into src/lib

Remove node.d.ts

Revert "Update unittests from add node as an option for --lib"

This reverts commit 5169273680.

Revert "Add compiler baseline-tests for using --lib node"

This reverts commit 17e437b4c7.
2016-04-04 22:02:12 -07:00

161 lines
5.9 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(X.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.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --))
>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(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>this : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
>foo : Symbol(C.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(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>this : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
>foo : Symbol(C.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(C.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(D.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))
}
}