14 lines
206 B
TypeScript
14 lines
206 B
TypeScript
// @allowJs: true
|
|
// @noEmit: true
|
|
|
|
// @filename: foo.js
|
|
class C {
|
|
constructor() {
|
|
/** @type {number[]}*/
|
|
this.p = [];
|
|
}
|
|
}
|
|
|
|
// @filename: bar.ts
|
|
|
|
(new C()).p.push("string");
|