Files
tsgo/testdata/baselines/reference/submodule/conformance/parserIndexSignature8.js

12 lines
361 B
TypeScript

//// [tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature8.ts] ////
//// [parserIndexSignature8.ts]
var foo: { [index: any]; }; // expect an error here
var foo2: { [index: RegExp]; }; // expect an error here
//// [parserIndexSignature8.js]
"use strict";
var foo; // expect an error here
var foo2; // expect an error here