2014-11-11 00:56:18 +01:00
|
|
|
tests/cases/compiler/declInput-2.ts(10,21): error TS4031: Public property 'm22' of exported class has or is using private name 'C'.
|
|
|
|
tests/cases/compiler/declInput-2.ts(13,21): error TS4031: Public property 'm25' of exported class has or is using private name 'I2'.
|
|
|
|
tests/cases/compiler/declInput-2.ts(16,24): error TS4055: Return type of public method from exported class has or is using private name 'I2'.
|
|
|
|
tests/cases/compiler/declInput-2.ts(18,23): error TS4073: Parameter 'i' of public method from exported class has or is using private name 'I2'.
|
|
|
|
tests/cases/compiler/declInput-2.ts(19,21): error TS4055: Return type of public method from exported class has or is using private name 'C'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-08-07 02:58:03 +02:00
|
|
|
==== tests/cases/compiler/declInput-2.ts (5 errors) ====
|
2014-08-06 22:12:34 +02:00
|
|
|
module M {
|
|
|
|
class C { }
|
|
|
|
export class E {}
|
|
|
|
export interface I1 {}
|
|
|
|
interface I2 {}
|
|
|
|
export class D {
|
|
|
|
private c: C; // don't generate
|
|
|
|
public m1: number;
|
|
|
|
public m2: string;
|
|
|
|
public m22: C; // don't generate
|
2014-11-11 00:56:18 +01:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS4031: Public property 'm22' of exported class has or is using private name 'C'.
|
2014-08-06 22:12:34 +02:00
|
|
|
public m23: E;
|
|
|
|
public m24: I1;
|
|
|
|
public m25: I2; // don't generate
|
2014-11-11 00:56:18 +01:00
|
|
|
~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS4031: Public property 'm25' of exported class has or is using private name 'I2'.
|
2014-08-06 22:12:34 +02:00
|
|
|
public m232(): E { return null;}
|
|
|
|
public m242(): I1 { return null; }
|
|
|
|
public m252(): I2 { return null; } // don't generate
|
2014-11-11 00:56:18 +01:00
|
|
|
~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS4055: Return type of public method from exported class has or is using private name 'I2'.
|
2014-08-06 22:12:34 +02:00
|
|
|
public m26(i:I1) {}
|
|
|
|
public m262(i:I2) {}
|
2014-11-11 00:56:18 +01:00
|
|
|
~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS4073: Parameter 'i' of public method from exported class has or is using private name 'I2'.
|
2014-08-06 22:12:34 +02:00
|
|
|
public m3():C { return new C(); }
|
2014-11-11 00:56:18 +01:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS4055: Return type of public method from exported class has or is using private name 'C'.
|
2014-08-06 22:12:34 +02:00
|
|
|
}
|
|
|
|
}
|