TypeScript/tests/baselines/reference/indexSignatureMustHaveTypeAnnotation.errors.txt

22 lines
558 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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.
}