`@constructor` put on anything incorrectly makes it a JS constructor. This is a problem for actual constructors, because getJSClassType doesn't work on actual classes. The fix is to make isJSConstructor require that its declaration is a function.
14 lines
204 B
TypeScript
14 lines
204 B
TypeScript
// @allowJs: true
|
|
// @noEmit: true
|
|
// @checkJs: true
|
|
// @Filename: bug27025.js
|
|
export class Alpha { }
|
|
export class Beta {
|
|
/**
|
|
* @constructor
|
|
*/
|
|
constructor() {
|
|
}
|
|
}
|
|
|
|
const arr = [Alpha, Beta];
|