mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
1.3 KiB
Diff
19 lines
1.3 KiB
Diff
--- old.usingDeclarationsWithIteratorObject.errors.txt
|
|
+++ new.usingDeclarationsWithIteratorObject.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-usingDeclarationsWithIteratorObject.ts(20,17): error TS2850: The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'.
|
|
- Property '[Symbol.dispose]' is missing in type 'Iterator<string, undefined, any>' but required in type 'Disposable'.
|
|
+usingDeclarationsWithIteratorObject.ts(20,17): error TS2741: Property '[Symbol.dispose]' is missing in type 'Iterator<string, undefined, any>' but required in type 'Disposable'.
|
|
|
|
|
|
==== usingDeclarationsWithIteratorObject.ts (1 errors) ====
|
|
@@= skipped -23, +22 lines =@@
|
|
// should fail
|
|
using it7 = i;
|
|
~
|
|
-!!! error TS2850: The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'.
|
|
-!!! error TS2850: Property '[Symbol.dispose]' is missing in type 'Iterator<string, undefined, any>' but required in type 'Disposable'.
|
|
+!!! error TS2741: Property '[Symbol.dispose]' is missing in type 'Iterator<string, undefined, any>' but required in type 'Disposable'.
|
|
!!! related TS2728 lib.esnext.disposable.d.ts:--:--: '[Symbol.dispose]' is declared here.
|
|
}
|
|
|