mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
427 B
TypeScript
22 lines
427 B
TypeScript
//// [tests/cases/conformance/types/namedTypes/interfaceWithPrivateMember.ts] ////
|
|
|
|
//// [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]
|
|
"use strict";
|
|
// interfaces do not permit private members, these are errors
|
|
var x;
|