TypeScript/tests/baselines/reference/staticIndexSignatureAndNormalIndexSignature.js
Wesley Wigham 2203228b62
Ensure static index signatures have an errorNode available (#44129)
* Ensure static index signatures have an errorNode available

* Lookup static index signature declarations in the right symbol table, stop checking prototype props
2021-05-24 14:30:59 -07:00

13 lines
274 B
TypeScript

//// [staticIndexSignatureAndNormalIndexSignature.ts]
class Foo {
[p: string]: any;
static [p: string]: number;
}
//// [staticIndexSignatureAndNormalIndexSignature.js]
var Foo = /** @class */ (function () {
function Foo() {
}
return Foo;
}());