2014-12-11 07:30:40 +01:00
|
|
|
tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts(4,15): error TS1005: ']' expected.
|
2015-01-09 23:45:27 +01:00
|
|
|
tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts(4,17): error TS2304: Cannot find name 'string'.
|
2014-12-11 07:30:40 +01:00
|
|
|
tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts(4,23): error TS1005: ',' expected.
|
|
|
|
tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts(4,24): error TS1136: Property assignment expected.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts(4,32): error TS1005: ':' expected.
|
|
|
|
|
|
|
|
|
2015-02-07 02:30:29 +01:00
|
|
|
==== tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts (5 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
// private indexers not allowed
|
|
|
|
|
|
|
|
var x = {
|
|
|
|
private [x: string]: string;
|
|
|
|
~
|
2014-12-11 07:30:40 +01:00
|
|
|
!!! error TS1005: ']' expected.
|
2015-01-09 23:45:27 +01:00
|
|
|
~~~~~~
|
|
|
|
!!! error TS2304: Cannot find name 'string'.
|
2014-12-11 07:30:40 +01:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1005: ',' expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
~
|
2014-12-11 07:30:40 +01:00
|
|
|
!!! error TS1136: Property assignment expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1005: ':' expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var y: {
|
|
|
|
private[x: string]: string;
|
2014-12-11 07:30:40 +01:00
|
|
|
}
|