TypeScript/tests/baselines/reference/iteratorSpreadInCall.errors.txt

21 lines
651 B
Plaintext
Raw Normal View History

2015-03-25 00:52:00 +01:00
tests/cases/conformance/es6/spread/iteratorSpreadInCall.ts(1,1): error TS2346: Supplied parameters do not match any signature of call target.
==== tests/cases/conformance/es6/spread/iteratorSpreadInCall.ts (1 errors) ====
foo(...new SymbolIterator);
~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2346: Supplied parameters do not match any signature of call target.
function foo(s: symbol) { }
class SymbolIterator {
next() {
return {
value: Symbol(),
done: false
};
}
[Symbol.iterator]() {
return this;
}
}