Minor refactor in paramTagNestedWithoutTopLevelObject.ts

This commit is contained in:
Gabriela Britto
2019-01-10 14:05:10 -08:00
parent e2524e3750
commit ebe193c6d7
4 changed files with 7 additions and 7 deletions

View File

@@ -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;
}

View File

@@ -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))
}

View File

@@ -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
}

View File

@@ -7,5 +7,5 @@
* @param {number} xyz.p
*/
function g(xyz) {
xyz.x;
return xyz.p;
}