TypeScript/tests/cases/conformance/salsa/typeFromPropertyAssignment2.ts
2017-11-21 10:23:23 -08:00

19 lines
251 B
TypeScript

// @noEmit: true
// @allowJs: true
// @checkJs: true
// @Filename: a.js
function Outer() {
this.y = 2
}
Outer.Inner = class I {
constructor() {
this.x = 1
}
}
/** @type {Outer} */
var ok
ok.y
/** @type {Outer.Inner} */
var oc
oc.x