2014-11-11 00:56:18 +01:00
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(164,21): error TS4065: Parameter 'param' of constructor signature from exported interface has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(165,17): error TS4067: Parameter 'param' of call signature from exported interface has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(166,25): error TS4075: Parameter 'param' of method from exported interface has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(188,44): error TS4070: Parameter 'param' of public static method from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(192,31): error TS4073: Parameter 'param' of public method from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(196,28): error TS4063: Parameter 'param' of constructor from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(196,58): error TS4063: Parameter 'param1' of constructor from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(196,87): error TS4063: Parameter 'param2' of constructor from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(239,67): error TS4078: Parameter 'param' of exported function has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(248,82): error TS4078: Parameter 'param' of exported function has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(254,21): error TS4065: Parameter 'param' of constructor signature from exported interface has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(255,17): error TS4067: Parameter 'param' of call signature from exported interface has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(256,25): error TS4075: Parameter 'param' of method from exported interface has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(259,44): error TS4070: Parameter 'param' of public static method from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(261,31): error TS4073: Parameter 'param' of public method from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(263,28): error TS4063: Parameter 'param' of constructor from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(263,71): error TS4063: Parameter 'param1' of constructor from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(263,113): error TS4063: Parameter 'param2' of constructor from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(266,74): error TS4078: Parameter 'param' of exported function has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts(268,89): error TS4078: Parameter 'param' of exported function has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(9,17): error TS4065: Parameter 'param' of constructor signature from exported interface has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(10,13): error TS4067: Parameter 'param' of call signature from exported interface has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(11,21): error TS4075: Parameter 'param' of method from exported interface has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(33,40): error TS4070: Parameter 'param' of public static method from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(37,27): error TS4073: Parameter 'param' of public method from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(41,24): error TS4063: Parameter 'param' of constructor from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(41,54): error TS4063: Parameter 'param1' of constructor from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(41,83): error TS4063: Parameter 'param2' of constructor from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(84,63): error TS4078: Parameter 'param' of exported function has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(93,78): error TS4078: Parameter 'param' of exported function has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(99,17): error TS4065: Parameter 'param' of constructor signature from exported interface has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(100,13): error TS4067: Parameter 'param' of call signature from exported interface has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(101,21): error TS4075: Parameter 'param' of method from exported interface has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(104,40): error TS4070: Parameter 'param' of public static method from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(106,27): error TS4073: Parameter 'param' of public method from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(108,24): error TS4063: Parameter 'param' of constructor from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(108,67): error TS4063: Parameter 'param1' of constructor from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(108,109): error TS4063: Parameter 'param2' of constructor from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(111,70): error TS4078: Parameter 'param' of exported function has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(113,85): error TS4078: Parameter 'param' of exported function has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(141,21): error TS4065: Parameter 'param' of constructor signature from exported interface has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(142,17): error TS4067: Parameter 'param' of call signature from exported interface has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(143,25): error TS4075: Parameter 'param' of method from exported interface has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(165,44): error TS4070: Parameter 'param' of public static method from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(169,31): error TS4073: Parameter 'param' of public method from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(173,28): error TS4063: Parameter 'param' of constructor from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(173,58): error TS4063: Parameter 'param1' of constructor from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(173,87): error TS4063: Parameter 'param2' of constructor from exported class has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(216,67): error TS4078: Parameter 'param' of exported function has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(225,82): error TS4078: Parameter 'param' of exported function has or is using private name 'privateClass'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(231,21): error TS4065: Parameter 'param' of constructor signature from exported interface has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(232,17): error TS4067: Parameter 'param' of call signature from exported interface has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(233,25): error TS4075: Parameter 'param' of method from exported interface has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(236,44): error TS4070: Parameter 'param' of public static method from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(238,31): error TS4073: Parameter 'param' of public method from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(240,28): error TS4063: Parameter 'param' of constructor from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(240,71): error TS4063: Parameter 'param1' of constructor from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(240,113): error TS4063: Parameter 'param2' of constructor from exported class has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(243,74): error TS4078: Parameter 'param' of exported function has or is using private name 'privateModule'.
tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts(245,89): error TS4078: Parameter 'param' of exported function has or is using private name 'privateModule'.
2014-09-12 22:35:07 +02:00
2014-08-07 02:06:59 +02:00
==== tests/cases/compiler/privacyFunctionParameterDeclFile_externalModule.ts (40 errors) ====
class privateClass {
}
export class publicClass {
}
export interface publicInterfaceWithPrivateParmeterTypes {
new (param: privateClass): publicClass; // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4065: Parameter 'param' of constructor signature from exported interface has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
(param: privateClass): publicClass; // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4067: Parameter 'param' of call signature from exported interface has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
myMethod(param: privateClass): void; // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4075: Parameter 'param' of method from exported interface has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
export interface publicInterfaceWithPublicParmeterTypes {
new (param: publicClass): publicClass;
(param: publicClass): publicClass;
myMethod(param: publicClass): void;
}
interface privateInterfaceWithPrivateParmeterTypes {
new (param: privateClass): privateClass;
(param: privateClass): privateClass;
myMethod(param: privateClass): void;
}
interface privateInterfaceWithPublicParmeterTypes {
new (param: publicClass): publicClass;
(param: publicClass): publicClass;
myMethod(param: publicClass): void;
}
export class publicClassWithWithPrivateParmeterTypes {
static myPublicStaticMethod(param: privateClass) { // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4070: Parameter 'param' of public static method from exported class has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
private static myPrivateStaticMethod(param: privateClass) {
}
myPublicMethod(param: privateClass) { // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4073: Parameter 'param' of public method from exported class has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
private myPrivateMethod(param: privateClass) {
}
constructor(param: privateClass, private param1: privateClass, public param2: privateClass) { // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4063: Parameter 'param' of constructor from exported class has or is using private name 'privateClass'.
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4063: Parameter 'param1' of constructor from exported class has or is using private name 'privateClass'.
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4063: Parameter 'param2' of constructor from exported class has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
}
export class publicClassWithWithPublicParmeterTypes {
static myPublicStaticMethod(param: publicClass) {
}
private static myPrivateStaticMethod(param: publicClass) {
}
myPublicMethod(param: publicClass) {
}
private myPrivateMethod(param: publicClass) {
}
constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
}
}
class privateClassWithWithPrivateParmeterTypes {
static myPublicStaticMethod(param: privateClass) {
}
private static myPrivateStaticMethod(param: privateClass) {
}
myPublicMethod(param: privateClass) {
}
private myPrivateMethod(param: privateClass) {
}
constructor(param: privateClass, private param1: privateClass, public param2: privateClass) {
}
}
class privateClassWithWithPublicParmeterTypes {
static myPublicStaticMethod(param: publicClass) {
}
private static myPrivateStaticMethod(param: publicClass) {
}
myPublicMethod(param: publicClass) {
}
private myPrivateMethod(param: publicClass) {
}
constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
}
}
export function publicFunctionWithPrivateParmeterTypes(param: privateClass) { // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4078: Parameter 'param' of exported function has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
export function publicFunctionWithPublicParmeterTypes(param: publicClass) {
}
function privateFunctionWithPrivateParmeterTypes(param: privateClass) {
}
function privateFunctionWithPublicParmeterTypes(param: publicClass) {
}
export declare function publicAmbientFunctionWithPrivateParmeterTypes(param: privateClass): void; // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4078: Parameter 'param' of exported function has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
export declare function publicAmbientFunctionWithPublicParmeterTypes(param: publicClass): void;
declare function privateAmbientFunctionWithPrivateParmeterTypes(param: privateClass): void;
declare function privateAmbientFunctionWithPublicParmeterTypes(param: publicClass): void;
export interface publicInterfaceWithPrivateModuleParameterTypes {
new (param: privateModule.publicClass): publicClass; // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4065: Parameter 'param' of constructor signature from exported interface has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
(param: privateModule.publicClass): publicClass; // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4067: Parameter 'param' of call signature from exported interface has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
myMethod(param: privateModule.publicClass): void; // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4075: Parameter 'param' of method from exported interface has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
export class publicClassWithPrivateModuleParameterTypes {
static myPublicStaticMethod(param: privateModule.publicClass) { // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4070: Parameter 'param' of public static method from exported class has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
myPublicMethod(param: privateModule.publicClass) { // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4073: Parameter 'param' of public method from exported class has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
constructor(param: privateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.publicClass) { // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4063: Parameter 'param' of constructor from exported class has or is using private name 'privateModule'.
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4063: Parameter 'param1' of constructor from exported class has or is using private name 'privateModule'.
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4063: Parameter 'param2' of constructor from exported class has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
}
export function publicFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass) { // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4078: Parameter 'param' of exported function has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
export declare function publicAmbientFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass): void; // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4078: Parameter 'param' of exported function has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
interface privateInterfaceWithPrivateModuleParameterTypes {
new (param: privateModule.publicClass): publicClass;
(param: privateModule.publicClass): publicClass;
myMethod(param: privateModule.publicClass): void;
}
class privateClassWithPrivateModuleParameterTypes {
static myPublicStaticMethod(param: privateModule.publicClass) {
}
myPublicMethod(param: privateModule.publicClass) {
}
constructor(param: privateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.publicClass) {
}
}
function privateFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass) {
}
declare function privateAmbientFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass): void;
export module publicModule {
class privateClass {
}
export class publicClass {
}
export interface publicInterfaceWithPrivateParmeterTypes {
new (param: privateClass): publicClass; // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4065: Parameter 'param' of constructor signature from exported interface has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
(param: privateClass): publicClass; // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4067: Parameter 'param' of call signature from exported interface has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
myMethod(param: privateClass): void; // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4075: Parameter 'param' of method from exported interface has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
export interface publicInterfaceWithPublicParmeterTypes {
new (param: publicClass): publicClass;
(param: publicClass): publicClass;
myMethod(param: publicClass): void;
}
interface privateInterfaceWithPrivateParmeterTypes {
new (param: privateClass): privateClass;
(param: privateClass): privateClass;
myMethod(param: privateClass): void;
}
interface privateInterfaceWithPublicParmeterTypes {
new (param: publicClass): publicClass;
(param: publicClass): publicClass;
myMethod(param: publicClass): void;
}
export class publicClassWithWithPrivateParmeterTypes {
static myPublicStaticMethod(param: privateClass) { // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4070: Parameter 'param' of public static method from exported class has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
private static myPrivateStaticMethod(param: privateClass) {
}
myPublicMethod(param: privateClass) { // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4073: Parameter 'param' of public method from exported class has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
private myPrivateMethod(param: privateClass) {
}
constructor(param: privateClass, private param1: privateClass, public param2: privateClass) { // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4063: Parameter 'param' of constructor from exported class has or is using private name 'privateClass'.
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4063: Parameter 'param1' of constructor from exported class has or is using private name 'privateClass'.
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4063: Parameter 'param2' of constructor from exported class has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
}
export class publicClassWithWithPublicParmeterTypes {
static myPublicStaticMethod(param: publicClass) {
}
private static myPrivateStaticMethod(param: publicClass) {
}
myPublicMethod(param: publicClass) {
}
private myPrivateMethod(param: publicClass) {
}
constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
}
}
class privateClassWithWithPrivateParmeterTypes {
static myPublicStaticMethod(param: privateClass) {
}
private static myPrivateStaticMethod(param: privateClass) {
}
myPublicMethod(param: privateClass) {
}
private myPrivateMethod(param: privateClass) {
}
constructor(param: privateClass, private param1: privateClass, public param2: privateClass) {
}
}
class privateClassWithWithPublicParmeterTypes {
static myPublicStaticMethod(param: publicClass) {
}
private static myPrivateStaticMethod(param: publicClass) {
}
myPublicMethod(param: publicClass) {
}
private myPrivateMethod(param: publicClass) {
}
constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
}
}
export function publicFunctionWithPrivateParmeterTypes(param: privateClass) { // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4078: Parameter 'param' of exported function has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
export function publicFunctionWithPublicParmeterTypes(param: publicClass) {
}
function privateFunctionWithPrivateParmeterTypes(param: privateClass) {
}
function privateFunctionWithPublicParmeterTypes(param: publicClass) {
}
export declare function publicAmbientFunctionWithPrivateParmeterTypes(param: privateClass): void; // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4078: Parameter 'param' of exported function has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
export declare function publicAmbientFunctionWithPublicParmeterTypes(param: publicClass): void;
declare function privateAmbientFunctionWithPrivateParmeterTypes(param: privateClass): void;
declare function privateAmbientFunctionWithPublicParmeterTypes(param: publicClass): void;
export interface publicInterfaceWithPrivateModuleParameterTypes {
new (param: privateModule.publicClass): publicClass; // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4065: Parameter 'param' of constructor signature from exported interface has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
(param: privateModule.publicClass): publicClass; // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4067: Parameter 'param' of call signature from exported interface has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
myMethod(param: privateModule.publicClass): void; // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4075: Parameter 'param' of method from exported interface has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
export class publicClassWithPrivateModuleParameterTypes {
static myPublicStaticMethod(param: privateModule.publicClass) { // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4070: Parameter 'param' of public static method from exported class has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
myPublicMethod(param: privateModule.publicClass) { // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4073: Parameter 'param' of public method from exported class has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
constructor(param: privateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.publicClass) { // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4063: Parameter 'param' of constructor from exported class has or is using private name 'privateModule'.
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4063: Parameter 'param1' of constructor from exported class has or is using private name 'privateModule'.
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4063: Parameter 'param2' of constructor from exported class has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
}
export function publicFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass) { // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4078: Parameter 'param' of exported function has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
export declare function publicAmbientFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass): void; // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4078: Parameter 'param' of exported function has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
interface privateInterfaceWithPrivateModuleParameterTypes {
new (param: privateModule.publicClass): publicClass;
(param: privateModule.publicClass): publicClass;
myMethod(param: privateModule.publicClass): void;
}
class privateClassWithPrivateModuleParameterTypes {
static myPublicStaticMethod(param: privateModule.publicClass) {
}
myPublicMethod(param: privateModule.publicClass) {
}
constructor(param: privateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.publicClass) {
}
}
function privateFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass) {
}
declare function privateAmbientFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass): void;
}
module privateModule {
class privateClass {
}
export class publicClass {
}
export interface publicInterfaceWithPrivateParmeterTypes {
new (param: privateClass): publicClass;
(param: privateClass): publicClass;
myMethod(param: privateClass): void;
}
export interface publicInterfaceWithPublicParmeterTypes {
new (param: publicClass): publicClass;
(param: publicClass): publicClass;
myMethod(param: publicClass): void;
}
interface privateInterfaceWithPrivateParmeterTypes {
new (param: privateClass): privateClass;
(param: privateClass): privateClass;
myMethod(param: privateClass): void;
}
interface privateInterfaceWithPublicParmeterTypes {
new (param: publicClass): publicClass;
(param: publicClass): publicClass;
myMethod(param: publicClass): void;
}
export class publicClassWithWithPrivateParmeterTypes {
static myPublicStaticMethod(param: privateClass) {
}
private static myPrivateStaticMethod(param: privateClass) {
}
myPublicMethod(param: privateClass) {
}
private myPrivateMethod(param: privateClass) {
}
constructor(param: privateClass, private param1: privateClass, public param2: privateClass) {
}
}
export class publicClassWithWithPublicParmeterTypes {
static myPublicStaticMethod(param: publicClass) {
}
private static myPrivateStaticMethod(param: publicClass) {
}
myPublicMethod(param: publicClass) {
}
private myPrivateMethod(param: publicClass) {
}
constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
}
}
class privateClassWithWithPrivateParmeterTypes {
static myPublicStaticMethod(param: privateClass) {
}
private static myPrivateStaticMethod(param: privateClass) {
}
myPublicMethod(param: privateClass) {
}
private myPrivateMethod(param: privateClass) {
}
constructor(param: privateClass, private param1: privateClass, public param2: privateClass) {
}
}
class privateClassWithWithPublicParmeterTypes {
static myPublicStaticMethod(param: publicClass) {
}
private static myPrivateStaticMethod(param: publicClass) {
}
myPublicMethod(param: publicClass) {
}
private myPrivateMethod(param: publicClass) {
}
constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
}
}
export function publicFunctionWithPrivateParmeterTypes(param: privateClass) {
}
export function publicFunctionWithPublicParmeterTypes(param: publicClass) {
}
function privateFunctionWithPrivateParmeterTypes(param: privateClass) {
}
function privateFunctionWithPublicParmeterTypes(param: publicClass) {
}
export declare function publicAmbientFunctionWithPrivateParmeterTypes(param: privateClass): void;
export declare function publicAmbientFunctionWithPublicParmeterTypes(param: publicClass): void;
declare function privateAmbientFunctionWithPrivateParmeterTypes(param: privateClass): void;
declare function privateAmbientFunctionWithPublicParmeterTypes(param: publicClass): void;
export interface publicInterfaceWithPrivateModuleParameterTypes {
new (param: privateModule.publicClass): publicClass;
(param: privateModule.publicClass): publicClass;
myMethod(param: privateModule.publicClass): void;
}
export class publicClassWithPrivateModuleParameterTypes {
static myPublicStaticMethod(param: privateModule.publicClass) {
}
myPublicMethod(param: privateModule.publicClass) {
}
constructor(param: privateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.publicClass) {
}
}
export function publicFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass) {
}
export declare function publicAmbientFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass): void;
interface privateInterfaceWithPrivateModuleParameterTypes {
new (param: privateModule.publicClass): publicClass;
(param: privateModule.publicClass): publicClass;
myMethod(param: privateModule.publicClass): void;
}
class privateClassWithPrivateModuleParameterTypes {
static myPublicStaticMethod(param: privateModule.publicClass) {
}
myPublicMethod(param: privateModule.publicClass) {
}
constructor(param: privateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.publicClass) {
}
}
function privateFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass) {
}
declare function privateAmbientFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass): void;
}
==== tests/cases/compiler/privacyFunctionParameterDeclFile_GlobalFile.ts (20 errors) ====
class publicClassInGlobal {
}
interface publicInterfaceWithPublicParmeterTypesInGlobal {
new (param: publicClassInGlobal): publicClassInGlobal;
(param: publicClassInGlobal): publicClassInGlobal;
myMethod(param: publicClassInGlobal): void;
}
class publicClassWithWithPublicParmeterTypesInGlobal {
static myPublicStaticMethod(param: publicClassInGlobal) {
}
private static myPrivateStaticMethod(param: publicClassInGlobal) {
}
myPublicMethod(param: publicClassInGlobal) {
}
private myPrivateMethod(param: publicClassInGlobal) {
}
constructor(param: publicClassInGlobal, private param1: publicClassInGlobal, public param2: publicClassInGlobal) {
}
}
function publicFunctionWithPublicParmeterTypesInGlobal(param: publicClassInGlobal) {
}
declare function publicAmbientFunctionWithPublicParmeterTypesInGlobal(param: publicClassInGlobal): void;
module publicModuleInGlobal {
class privateClass {
}
export class publicClass {
}
module privateModule {
class privateClass {
}
export class publicClass {
}
export interface publicInterfaceWithPrivateParmeterTypes {
new (param: privateClass): publicClass;
(param: privateClass): publicClass;
myMethod(param: privateClass): void;
}
export interface publicInterfaceWithPublicParmeterTypes {
new (param: publicClass): publicClass;
(param: publicClass): publicClass;
myMethod(param: publicClass): void;
}
interface privateInterfaceWithPrivateParmeterTypes {
new (param: privateClass): privateClass;
(param: privateClass): privateClass;
myMethod(param: privateClass): void;
}
interface privateInterfaceWithPublicParmeterTypes {
new (param: publicClass): publicClass;
(param: publicClass): publicClass;
myMethod(param: publicClass): void;
}
export class publicClassWithWithPrivateParmeterTypes {
static myPublicStaticMethod(param: privateClass) {
}
private static myPrivateStaticMethod(param: privateClass) {
}
myPublicMethod(param: privateClass) {
}
private myPrivateMethod(param: privateClass) {
}
constructor(param: privateClass, private param1: privateClass, public param2: privateClass) {
}
}
export class publicClassWithWithPublicParmeterTypes {
static myPublicStaticMethod(param: publicClass) {
}
private static myPrivateStaticMethod(param: publicClass) {
}
myPublicMethod(param: publicClass) {
}
private myPrivateMethod(param: publicClass) {
}
constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
}
}
class privateClassWithWithPrivateParmeterTypes {
static myPublicStaticMethod(param: privateClass) {
}
private static myPrivateStaticMethod(param: privateClass) {
}
myPublicMethod(param: privateClass) {
}
private myPrivateMethod(param: privateClass) {
}
constructor(param: privateClass, private param1: privateClass, public param2: privateClass) {
}
}
class privateClassWithWithPublicParmeterTypes {
static myPublicStaticMethod(param: publicClass) {
}
private static myPrivateStaticMethod(param: publicClass) {
}
myPublicMethod(param: publicClass) {
}
private myPrivateMethod(param: publicClass) {
}
constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
}
}
export function publicFunctionWithPrivateParmeterTypes(param: privateClass) {
}
export function publicFunctionWithPublicParmeterTypes(param: publicClass) {
}
function privateFunctionWithPrivateParmeterTypes(param: privateClass) {
}
function privateFunctionWithPublicParmeterTypes(param: publicClass) {
}
export declare function publicAmbientFunctionWithPrivateParmeterTypes(param: privateClass): void;
export declare function publicAmbientFunctionWithPublicParmeterTypes(param: publicClass): void;
declare function privateAmbientFunctionWithPrivateParmeterTypes(param: privateClass): void;
declare function privateAmbientFunctionWithPublicParmeterTypes(param: publicClass): void;
export interface publicInterfaceWithPrivateModuleParameterTypes {
new (param: privateModule.publicClass): publicClass;
(param: privateModule.publicClass): publicClass;
myMethod(param: privateModule.publicClass): void;
}
export class publicClassWithPrivateModuleParameterTypes {
static myPublicStaticMethod(param: privateModule.publicClass) {
}
myPublicMethod(param: privateModule.publicClass) {
}
constructor(param: privateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.publicClass) {
}
}
export function publicFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass) {
}
export declare function publicAmbientFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass): void;
interface privateInterfaceWithPrivateModuleParameterTypes {
new (param: privateModule.publicClass): publicClass;
(param: privateModule.publicClass): publicClass;
myMethod(param: privateModule.publicClass): void;
}
class privateClassWithPrivateModuleParameterTypes {
static myPublicStaticMethod(param: privateModule.publicClass) {
}
myPublicMethod(param: privateModule.publicClass) {
}
constructor(param: privateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.publicClass) {
}
}
function privateFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass) {
}
declare function privateAmbientFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass): void;
}
export interface publicInterfaceWithPrivateParmeterTypes {
new (param: privateClass): publicClass; // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4065: Parameter 'param' of constructor signature from exported interface has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
(param: privateClass): publicClass; // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4067: Parameter 'param' of call signature from exported interface has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
myMethod(param: privateClass): void; // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4075: Parameter 'param' of method from exported interface has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
export interface publicInterfaceWithPublicParmeterTypes {
new (param: publicClass): publicClass;
(param: publicClass): publicClass;
myMethod(param: publicClass): void;
}
interface privateInterfaceWithPrivateParmeterTypes {
new (param: privateClass): privateClass;
(param: privateClass): privateClass;
myMethod(param: privateClass): void;
}
interface privateInterfaceWithPublicParmeterTypes {
new (param: publicClass): publicClass;
(param: publicClass): publicClass;
myMethod(param: publicClass): void;
}
export class publicClassWithWithPrivateParmeterTypes {
static myPublicStaticMethod(param: privateClass) { // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4070: Parameter 'param' of public static method from exported class has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
private static myPrivateStaticMethod(param: privateClass) {
}
myPublicMethod(param: privateClass) { // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4073: Parameter 'param' of public method from exported class has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
private myPrivateMethod(param: privateClass) {
}
constructor(param: privateClass, private param1: privateClass, public param2: privateClass) { // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4063: Parameter 'param' of constructor from exported class has or is using private name 'privateClass'.
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4063: Parameter 'param1' of constructor from exported class has or is using private name 'privateClass'.
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4063: Parameter 'param2' of constructor from exported class has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
}
export class publicClassWithWithPublicParmeterTypes {
static myPublicStaticMethod(param: publicClass) {
}
private static myPrivateStaticMethod(param: publicClass) {
}
myPublicMethod(param: publicClass) {
}
private myPrivateMethod(param: publicClass) {
}
constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
}
}
class privateClassWithWithPrivateParmeterTypes {
static myPublicStaticMethod(param: privateClass) {
}
private static myPrivateStaticMethod(param: privateClass) {
}
myPublicMethod(param: privateClass) {
}
private myPrivateMethod(param: privateClass) {
}
constructor(param: privateClass, private param1: privateClass, public param2: privateClass) {
}
}
class privateClassWithWithPublicParmeterTypes {
static myPublicStaticMethod(param: publicClass) {
}
private static myPrivateStaticMethod(param: publicClass) {
}
myPublicMethod(param: publicClass) {
}
private myPrivateMethod(param: publicClass) {
}
constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
}
}
export function publicFunctionWithPrivateParmeterTypes(param: privateClass) { // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4078: Parameter 'param' of exported function has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
}
export function publicFunctionWithPublicParmeterTypes(param: publicClass) {
}
function privateFunctionWithPrivateParmeterTypes(param: privateClass) {
}
function privateFunctionWithPublicParmeterTypes(param: publicClass) {
}
export declare function publicAmbientFunctionWithPrivateParmeterTypes(param: privateClass): void; // Error
2014-11-11 00:56:18 +01:00
~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS4078: Parameter 'param' of exported function has or is using private name 'privateClass'.
2014-08-07 02:06:59 +02:00
export declare function publicAmbientFunctionWithPublicParmeterTypes(param: publicClass): void;
declare function privateAmbientFunctionWithPrivateParmeterTypes(param: privateClass): void;
declare function privateAmbientFunctionWithPublicParmeterTypes(param: publicClass): void;
export interface publicInterfaceWithPrivateModuleParameterTypes {
new (param: privateModule.publicClass): publicClass; // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4065: Parameter 'param' of constructor signature from exported interface has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
(param: privateModule.publicClass): publicClass; // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4067: Parameter 'param' of call signature from exported interface has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
myMethod(param: privateModule.publicClass): void; // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4075: Parameter 'param' of method from exported interface has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
export class publicClassWithPrivateModuleParameterTypes {
static myPublicStaticMethod(param: privateModule.publicClass) { // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4070: Parameter 'param' of public static method from exported class has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
myPublicMethod(param: privateModule.publicClass) { // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4073: Parameter 'param' of public method from exported class has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
constructor(param: privateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.publicClass) { // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4063: Parameter 'param' of constructor from exported class has or is using private name 'privateModule'.
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4063: Parameter 'param1' of constructor from exported class has or is using private name 'privateModule'.
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4063: Parameter 'param2' of constructor from exported class has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
}
export function publicFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass) { // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4078: Parameter 'param' of exported function has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
}
export declare function publicAmbientFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass): void; // Error
2014-11-11 03:50:28 +01:00
~~~~~~~~~~~~~
2014-11-11 00:56:18 +01:00
!!! error TS4078: Parameter 'param' of exported function has or is using private name 'privateModule'.
2014-08-07 02:06:59 +02:00
interface privateInterfaceWithPrivateModuleParameterTypes {
new (param: privateModule.publicClass): publicClass;
(param: privateModule.publicClass): publicClass;
myMethod(param: privateModule.publicClass): void;
}
class privateClassWithPrivateModuleParameterTypes {
static myPublicStaticMethod(param: privateModule.publicClass) {
}
myPublicMethod(param: privateModule.publicClass) {
}
constructor(param: privateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.publicClass) {
}
}
function privateFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass) {
}
declare function privateAmbientFunctionWithPrivateModuleParameterTypes(param: privateModule.publicClass): void;
}