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

12 lines
711 B
Text
Raw Normal View History

tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts(2,11): error TS1018: An index signature parameter cannot have an accessibility modifier.
tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts(2,4): error TS2369: A parameter property is only allowed in a constructor implementation.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts (2 errors) ====
interface I {
[public a]
~
!!! error TS1018: An index signature parameter cannot have an accessibility modifier.
2014-07-13 01:04:16 +02:00
~~~~~~~~
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
2014-07-13 01:04:16 +02:00
}