Files
tsgo/testdata/baselines/reference/submoduleAccepted/conformance/usingDeclarations.14.errors.txt.diff

15 lines
1.0 KiB
Diff

--- old.usingDeclarations.14.errors.txt
+++ new.usingDeclarations.14.errors.txt
@@= skipped -0, +0 lines =@@
-usingDeclarations.14.ts(1,11): 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 '{}' but required in type 'Disposable'.
+usingDeclarations.14.ts(1,11): error TS2741: Property '[Symbol.dispose]' is missing in type '{}' but required in type 'Disposable'.
==== usingDeclarations.14.ts (1 errors) ====
using x = {};
~~
-!!! 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 '{}' but required in type 'Disposable'.
+!!! error TS2741: Property '[Symbol.dispose]' is missing in type '{}' but required in type 'Disposable'.
!!! related TS2728 lib.esnext.disposable.d.ts:--:--: '[Symbol.dispose]' is declared here.