mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
1.0 KiB
Diff
16 lines
1.0 KiB
Diff
--- old.iterableArrayPattern18.errors.txt
|
|
+++ new.iterableArrayPattern18.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-iterableArrayPattern18.ts(17,5): error TS2345: Argument of type 'FooIterator' is not assignable to parameter of type 'Bar[]'.
|
|
- Type 'FooIterator' is missing the following properties from type 'Bar[]': length, pop, push, concat, and 24 more.
|
|
+iterableArrayPattern18.ts(17,5): error TS2740: Type 'FooIterator' is missing the following properties from type 'Bar[]': length, pop, push, concat, and 24 more.
|
|
|
|
|
|
==== iterableArrayPattern18.ts (1 errors) ====
|
|
@@= skipped -20, +19 lines =@@
|
|
function fun([a, b]: Bar[]) { }
|
|
fun(new FooIterator);
|
|
~~~~~~~~~~~~~~~
|
|
-!!! error TS2345: Argument of type 'FooIterator' is not assignable to parameter of type 'Bar[]'.
|
|
-!!! error TS2345: Type 'FooIterator' is missing the following properties from type 'Bar[]': length, pop, push, concat, and 24 more.
|
|
+!!! error TS2740: Type 'FooIterator' is missing the following properties from type 'Bar[]': length, pop, push, concat, and 24 more.
|