20 lines
338 B
JavaScript
20 lines
338 B
JavaScript
|
//// [interfaceWithPrivateMember.ts]
|
||
|
// 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;
|
||
|
}
|
||
|
|
||
|
//// [interfaceWithPrivateMember.js]
|
||
|
// interfaces do not permit private members, these are errors
|
||
|
var x;
|
||
|
y: string;
|