mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Minor refactor in paramTagNestedWithoutTopLevelObject.ts
This commit is contained in:
@@ -8,5 +8,5 @@ tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject.js(2,20): erro
|
||||
!!! error TS8032: Qualified name 'xyz.p' is not allowed without a leading '@param {object} xyz'.
|
||||
*/
|
||||
function g(xyz) {
|
||||
xyz.x;
|
||||
return xyz.p;
|
||||
}
|
||||
@@ -6,6 +6,6 @@ function g(xyz) {
|
||||
>g : Symbol(g, Decl(paramTagNestedWithoutTopLevelObject.js, 0, 0))
|
||||
>xyz : Symbol(xyz, Decl(paramTagNestedWithoutTopLevelObject.js, 3, 11))
|
||||
|
||||
xyz.x;
|
||||
return xyz.p;
|
||||
>xyz : Symbol(xyz, Decl(paramTagNestedWithoutTopLevelObject.js, 3, 11))
|
||||
}
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
* @param {number} xyz.p
|
||||
*/
|
||||
function g(xyz) {
|
||||
>g : (xyz: any) => void
|
||||
>g : (xyz: any) => any
|
||||
>xyz : any
|
||||
|
||||
xyz.x;
|
||||
>xyz.x : any
|
||||
return xyz.p;
|
||||
>xyz.p : any
|
||||
>xyz : any
|
||||
>x : any
|
||||
>p : any
|
||||
}
|
||||
|
||||
@@ -7,5 +7,5 @@
|
||||
* @param {number} xyz.p
|
||||
*/
|
||||
function g(xyz) {
|
||||
xyz.x;
|
||||
return xyz.p;
|
||||
}
|
||||
Reference in New Issue
Block a user