TypeScript/tests/baselines/reference/indexSignatureMustHaveTypeAnnotation.errors.txt
2014-07-12 17:30:19 -07:00

22 lines
558 B
Plaintext

==== tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts (4 errors) ====
interface I {
[x]: string;
~
!!! An index signature parameter must have a type annotation.
[x: string];
~~~~~~~~~~~
!!! An index signature must have a type annotation.
}
class C {
[x]: string
~
!!! An index signature parameter must have a type annotation.
}
class C2 {
[x: string]
~~~~~~~~~~~
!!! An index signature must have a type annotation.
}