Skip to content

Commit 3980b5b

Browse files
authored
Fix overloadTag2 test (#52814)
1 parent 879dbcd commit 3980b5b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/baselines/reference/overloadTag2.errors.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
tests/cases/conformance/jsdoc/overloadTag2.js(14,9): error TS2394: This overload signature is not compatible with its implementation signature.
12
tests/cases/conformance/jsdoc/overloadTag2.js(25,20): error TS7006: Parameter 'b' implicitly has an 'any' type.
23
tests/cases/conformance/jsdoc/overloadTag2.js(30,9): error TS2554: Expected 1-2 arguments, but got 0.
34

45

5-
==== tests/cases/conformance/jsdoc/overloadTag2.js (2 errors) ====
6+
==== tests/cases/conformance/jsdoc/overloadTag2.js (3 errors) ====
67
export class Foo {
78
#a = true ? 1 : "1"
89
#b
@@ -17,6 +18,9 @@ tests/cases/conformance/jsdoc/overloadTag2.js(30,9): error TS2554: Expected 1-2
1718
/**
1819
* @constructor
1920
* @overload
21+
~~~~~~~~
22+
!!! error TS2394: This overload signature is not compatible with its implementation signature.
23+
!!! related TS2750 tests/cases/conformance/jsdoc/overloadTag2.js:25:5: The implementation signature is declared here.
2024
* @param {number} a
2125
*/
2226
/**

0 commit comments

Comments
 (0)