mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
967 B
Diff
17 lines
967 B
Diff
--- old.iterableArrayPattern17.errors.txt
|
|
+++ new.iterableArrayPattern17.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-iterableArrayPattern17.ts(17,5): error TS2345: Argument of type 'FooIterator' is not assignable to parameter of type 'Bar'.
|
|
- Property 'x' is missing in type 'FooIterator' but required in type 'Bar'.
|
|
+iterableArrayPattern17.ts(17,5): error TS2741: Property 'x' is missing in type 'FooIterator' but required in type 'Bar'.
|
|
|
|
|
|
==== iterableArrayPattern17.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: Property 'x' is missing in type 'FooIterator' but required in type 'Bar'.
|
|
+!!! error TS2741: Property 'x' is missing in type 'FooIterator' but required in type 'Bar'.
|
|
!!! related TS2728 iterableArrayPattern17.ts:1:13: 'x' is declared here.
|