mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
802 B
Diff
31 lines
802 B
Diff
--- old.jsdocParseStarEquals.errors.txt
|
|
+++ new.jsdocParseStarEquals.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-<no content>
|
|
+a.js(1,5): error TS1047: A rest parameter cannot be optional.
|
|
+a.js(3,12): error TS2370: A rest parameter must be of an array type.
|
|
+a.js(11,21): error TS1005: '}' expected.
|
|
+
|
|
+
|
|
+==== a.js (3 errors) ====
|
|
+ /** @param {...*=} args
|
|
+ ~~~~~~~~~~~~~~~~~~~
|
|
+ @return {*=} */
|
|
+ ~~~~
|
|
+!!! error TS1047: A rest parameter cannot be optional.
|
|
+ function f(...args) {
|
|
+ ~~~~~~~
|
|
+!!! error TS2370: A rest parameter must be of an array type.
|
|
+ return null
|
|
+ }
|
|
+
|
|
+ /** @type *= */
|
|
+ var x;
|
|
+
|
|
+
|
|
+ /** @param {function():*=} f */
|
|
+ ~
|
|
+!!! error TS1005: '}' expected.
|
|
+ function cbf(f) {
|
|
+ }
|
|
+
|