TypeScript/tests/cases/conformance/salsa/propertyAssignmentUseParentType1.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

14 lines
304 B
TypeScript

interface N {
(): boolean
num: 123;
}
export const interfaced: N = () => true;
interfaced.num = 123;
export const inlined: { (): boolean; nun: 456 } = () => true;
inlined.nun = 456;
export const ignoreJsdoc = () => true;
/** @type {string} make sure to ignore jsdoc! */
ignoreJsdoc.extra = 111