mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
601 B
Plaintext
29 lines
601 B
Plaintext
//// [tests/cases/compiler/arrowFunctionJSDocAnnotation.ts] ////
|
|
|
|
=== index.js ===
|
|
/**
|
|
* @param {any} v
|
|
*/
|
|
function identity(v) {
|
|
>identity : Symbol(identity, Decl(index.js, 0, 0))
|
|
>v : Symbol(v, Decl(index.js, 3, 18))
|
|
|
|
return v;
|
|
>v : Symbol(v, Decl(index.js, 3, 18))
|
|
}
|
|
|
|
const x = identity(
|
|
>x : Symbol(x, Decl(index.js, 7, 5))
|
|
>identity : Symbol(identity, Decl(index.js, 0, 0))
|
|
|
|
/**
|
|
* @param {number} param
|
|
* @returns {number=}
|
|
*/
|
|
param => param
|
|
>param : Symbol(param, Decl(index.js, 7, 19))
|
|
>param : Symbol(param, Decl(index.js, 7, 19))
|
|
|
|
);
|
|
|