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

24 lines
600 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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.