TypeScript/tests/cases/conformance/jsdoc/constructorTagOnObjectLiteralMethod.ts

11 lines
200 B
TypeScript
Raw Normal View History

// @noEmit: true
// @Filename: example.js
// @allowJs: true
// @checkJs: true
// @noImplicitAny: true
const obj = {
/** @constructor */
Foo() { this.bar = "bar" }
};
(new obj.Foo()).bar