2014-12-11 07:30:40 +01:00
|
|
|
tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts(4,15): error TS1005: ']' expected.
|
|
|
|
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.
|
|
|
|
tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts(5,1): error TS1128: Declaration or statement expected.
|
|
|
|
|
|
|
|
|
2014-12-11 07:30:40 +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.
|
|
|
|
~
|
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
|
|
|
}
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1128: Declaration or statement expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
var y: {
|
|
|
|
private[x: string]: string;
|
2014-12-11 07:30:40 +01:00
|
|
|
}
|