TypeScript/tests/cases/conformance/types/namedTypes/interfaceWithPrivateMember.ts

15 lines
218 B
TypeScript

// @allowUnusedLabels: true
// interfaces do not permit private members, these are errors
interface I {
private x: string;
}
interface I2<T> {
private y: T;
}
var x: {
private y: string;
}