1. The actual symbols needed to be marked as containers. 2. Type node resolution needed to understand prototype assignments.
20 lines
271 B
TypeScript
20 lines
271 B
TypeScript
// @noEmit: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @Filename: a.js
|
|
var Outer = {};
|
|
|
|
Outer.Inner = class {
|
|
constructor() {
|
|
this.x = 1
|
|
}
|
|
m() { }
|
|
}
|
|
|
|
/** @type {Outer.Inner} */
|
|
var inner
|
|
inner.x
|
|
inner.m()
|
|
var inno = new Outer.Inner()
|
|
inno.x
|
|
inno.m()
|