Files
tsgo/testdata/baselines/reference/submoduleAccepted/conformance/callWithMissingVoidUndefinedUnknownAnyInJs(strict=false).errors.txt.diff
2025-11-17 15:37:52 +00:00

51 lines
2.0 KiB
Diff

--- old.callWithMissingVoidUndefinedUnknownAnyInJs(strict=false).errors.txt
+++ new.callWithMissingVoidUndefinedUnknownAnyInJs(strict=false).errors.txt
@@= skipped -0, +0 lines =@@
+jsfile.js(6,1): error TS2554: Expected 1 arguments, but got 0.
+jsfile.js(7,1): error TS2554: Expected 1 arguments, but got 0.
+jsfile.js(8,1): error TS2554: Expected 1 arguments, but got 0.
+jsfile.js(10,4): error TS2554: Expected 1 arguments, but got 0.
+jsfile.js(11,4): error TS2554: Expected 1 arguments, but got 0.
+jsfile.js(12,4): error TS2554: Expected 1 arguments, but got 0.
tsfile.ts(6,1): error TS2554: Expected 1 arguments, but got 0.
tsfile.ts(7,1): error TS2554: Expected 1 arguments, but got 0.
tsfile.ts(8,1): error TS2554: Expected 1 arguments, but got 0.
@@= skipped -17, +23 lines =@@
declare const o3: I<unknown>;
declare const o4: I<any>;
-==== jsfile.js (0 errors) ====
+==== jsfile.js (6 errors) ====
// current behavior: treat trailing `void` as optional
f1();
o1.m();
// new behavior: treat 'undefined', 'unknown', and 'any' as optional in non-strict mode
f2();
+ ~~
+!!! error TS2554: Expected 1 arguments, but got 0.
+!!! related TS6210 defs.d.ts:2:21: An argument for 'p' was not provided.
f3();
+ ~~
+!!! error TS2554: Expected 1 arguments, but got 0.
+!!! related TS6210 defs.d.ts:3:21: An argument for 'p' was not provided.
f4();
+ ~~
+!!! error TS2554: Expected 1 arguments, but got 0.
+!!! related TS6210 defs.d.ts:4:21: An argument for 'p' was not provided.
o2.m();
+ ~
+!!! error TS2554: Expected 1 arguments, but got 0.
+!!! related TS6210 defs.d.ts:6:20: An argument for 'p' was not provided.
o3.m();
+ ~
+!!! error TS2554: Expected 1 arguments, but got 0.
+!!! related TS6210 defs.d.ts:6:20: An argument for 'p' was not provided.
o4.m();
+ ~
+!!! error TS2554: Expected 1 arguments, but got 0.
+!!! related TS6210 defs.d.ts:6:20: An argument for 'p' was not provided.
==== tsfile.ts (6 errors) ====
// current behavior: treat trailing `void` as optional