* Fix default-property-assignment decls+prototype property decls The check in getAssignedClassSymbol forgot to allow for default-property assignment declarations, in part because it wasn't using a utility function to do so. * small cleanup * make allowDeclaration parameter required
14 lines
189 B
TypeScript
14 lines
189 B
TypeScript
// @noEmit: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @Filename: bug39167.js
|
|
var test = {};
|
|
test.K = test.K ||
|
|
function () {}
|
|
|
|
test.K.prototype = {
|
|
add() {}
|
|
};
|
|
|
|
new test.K().add;
|