mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
539 B
Plaintext
21 lines
539 B
Plaintext
iteratorSpreadInArray7.ts(15,1): error TS2454: Variable 'array' is used before being assigned.
|
|
|
|
|
|
==== iteratorSpreadInArray7.ts (1 errors) ====
|
|
class SymbolIterator {
|
|
next() {
|
|
return {
|
|
value: Symbol(),
|
|
done: false
|
|
};
|
|
}
|
|
|
|
[Symbol.iterator]() {
|
|
return this;
|
|
}
|
|
}
|
|
|
|
var array: symbol[];
|
|
array.concat([...new SymbolIterator]);
|
|
~~~~~
|
|
!!! error TS2454: Variable 'array' is used before being assigned. |