TypeScript/tests/baselines/reference/iteratorSpreadInCall10.errors.txt
2015-03-25 18:03:45 -07:00

22 lines
673 B
Plaintext

tests/cases/conformance/es6/spread/iteratorSpreadInCall10.ts(1,1): error TS2346: Supplied parameters do not match any signature of call target.
==== tests/cases/conformance/es6/spread/iteratorSpreadInCall10.ts (1 errors) ====
foo(...new SymbolIterator);
~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2346: Supplied parameters do not match any signature of call target.
function foo<T>(s: T[]) { return s[0] }
class SymbolIterator {
next() {
return {
value: Symbol(),
done: false
};
}
[Symbol.iterator]() {
return this;
}
}