TypeScript/tests/cases/compiler/propertiesAndIndexers2.ts
2014-10-08 17:12:36 -07:00

16 lines
268 B
TypeScript

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;
}