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

16 lines
599 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/indexSignatureWithAccessibilityModifier.ts (4 errors) ====
interface I {
[public x: string]: string;
~
!!! An index signature parameter cannot have an accessibility modifier.
~~~~~~~~~~~~~~~~
!!! A parameter property is only allowed in a constructor implementation.
}
class C {
[public x: string]: string
~
!!! An index signature parameter cannot have an accessibility modifier.
~~~~~~~~~~~~~~~~
!!! A parameter property is only allowed in a constructor implementation.
}