32 lines
517 B
TypeScript
32 lines
517 B
TypeScript
//// [privateIndexer.ts]
|
|
// private indexers not allowed
|
|
|
|
class C {
|
|
private [x: string]: string;
|
|
}
|
|
|
|
class D {
|
|
private [x: number]: string;
|
|
}
|
|
|
|
class E<T> {
|
|
private [x: string]: T;
|
|
}
|
|
|
|
//// [privateIndexer.js]
|
|
// private indexers not allowed
|
|
var C = /** @class */ (function () {
|
|
function C() {
|
|
}
|
|
return C;
|
|
}());
|
|
var D = /** @class */ (function () {
|
|
function D() {
|
|
}
|
|
return D;
|
|
}());
|
|
var E = /** @class */ (function () {
|
|
function E() {
|
|
}
|
|
return E;
|
|
}());
|