TypeScript/tests/cases/conformance/salsa/typeFromPropertyAssignment11.ts
2018-02-22 12:52:50 -08:00

20 lines
322 B
TypeScript

// @noEmit: true
// @allowJs: true
// @checkJs: true
// @target: es6
// @Filename: module.js
var Inner = function() {}
Inner.prototype = {
m() { },
i: 1
}
// incremental assignments still work
Inner.prototype.j = 2
/** @type {string} */
Inner.prototype.k;
var inner = new Inner()
inner.m()
inner.i
inner.j
inner.k