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