24 lines
600 B
Plaintext
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. |