TypeScript/tests/cases/conformance/salsa/propertyAssignmentUseParentType2.ts
Nathan Shively-Sanders 772bee5e84
Property assignment uses parent type annotation (#32553)
* Property assignment uses parent type annotation

First draft, will write full explanation later.

Also makes sure that jsdoc is ignored in TS. It was not before.

* Update baselines
2019-07-25 10:23:03 -07:00

19 lines
458 B
TypeScript

// @allowJs: true
// @checkJs: true
// @noEmit: true
// @Filename: propertyAssignmentUseParentType2.js
/** @type {{ (): boolean; nuo: 789 }} */
export const inlined = () => true
inlined.nuo = 789
/** @type {{ (): boolean; nuo: 789 }} */
export const duplicated = () => true
/** @type {789} */
duplicated.nuo = 789
/** @type {{ (): boolean; nuo: 789 }} */
export const conflictingDuplicated = () => true
/** @type {1000} */
conflictingDuplicated.nuo = 789