21 lines
670 B
Plaintext
21 lines
670 B
Plaintext
tests/cases/conformance/es6/spread/iteratorSpreadInCall4.ts(1,1): error TS2346: Supplied parameters do not match any signature of call target.
|
|
|
|
|
|
==== tests/cases/conformance/es6/spread/iteratorSpreadInCall4.ts (1 errors) ====
|
|
foo(...new SymbolIterator);
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2346: Supplied parameters do not match any signature of call target.
|
|
|
|
function foo(s1: symbol, ...s: symbol[]) { }
|
|
class SymbolIterator {
|
|
next() {
|
|
return {
|
|
value: Symbol(),
|
|
done: false
|
|
};
|
|
}
|
|
|
|
[Symbol.iterator]() {
|
|
return this;
|
|
}
|
|
} |