8 lines
247 B
TypeScript
8 lines
247 B
TypeScript
//// [parserIndexSignature8.ts]
|
|
var foo: { [index: any]; }; // expect an error here
|
|
var foo2: { [index: RegExp]; }; // expect an error here
|
|
|
|
|
|
//// [parserIndexSignature8.js]
|
|
var foo; // expect an error here
|
|
var foo2; // expect an error here
|