TypeScript/tests/baselines/reference/interfaceWithPrivateMember.errors.txt
2014-07-12 17:30:19 -07:00

24 lines
600 B
Plaintext

==== tests/cases/conformance/types/namedTypes/interfaceWithPrivateMember.ts (5 errors) ====
// interfaces do not permit private members, these are errors
interface I {
private x: string;
~~~~~~~
!!! Property or signature expected.
}
interface I2<T> {
private y: T;
~~~~~~~
!!! Property or signature expected.
}
var x: {
private y: string;
~~~~~~~
!!! Property or signature expected.
~~~~~~
!!! Cannot find name 'string'.
}
~
!!! Declaration or statement expected.