TypeScript/tests/baselines/reference/propertiesAndIndexers2.js
2014-10-08 17:12:36 -07:00

20 lines
325 B
TypeScript

//// [propertiesAndIndexers2.ts]
interface A {
[n: number]: string;
[s: string]: number;
}
// All of these should fail.
interface B extends A {
c: string;
3: string;
Infinity: string;
"-Infinity": string;
NaN: string;
"-NaN": string;
6(): string;
}
//// [propertiesAndIndexers2.js]