TypeScript/tests/cases/compiler/modularizeLibrary_UsingES5LibAndES6ArrayLib.ts
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

9 lines
159 B
TypeScript

// @lib: es5,es2015.core
// @target: es5
// No error
function f(x: number, y: number, z: number) {
return Array.from(arguments);
}
f(1, 2, 3);