File tree Expand file tree Collapse file tree 5 files changed +1616
-4
lines changed Expand file tree Collapse file tree 5 files changed +1616
-4
lines changed Original file line number Diff line number Diff line change @@ -2291,12 +2291,12 @@ module ts {
2291
2291
Diagnostics . Exported_variable_0_has_or_is_using_private_name_1 ;
2292
2292
}
2293
2293
else {
2294
- if ( node . parent . flags & NodeFlags . Static ) {
2294
+ if ( node . flags & NodeFlags . Static ) {
2295
2295
diagnosticMessage = symbolAccesibilityResult . errorModuleName ?
2296
2296
Diagnostics . Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 :
2297
2297
Diagnostics . Public_static_property_0_of_exported_class_has_or_is_using_private_name_1 ;
2298
2298
}
2299
- else if ( node . parent . parent . kind === SyntaxKind . ClassDeclaration ) {
2299
+ else if ( node . parent . kind === SyntaxKind . ClassDeclaration ) {
2300
2300
diagnosticMessage = symbolAccesibilityResult . errorModuleName ?
2301
2301
Diagnostics . Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 :
2302
2302
Diagnostics . Public_property_0_of_exported_class_has_or_is_using_private_name_1 ;
Original file line number Diff line number Diff line change 10
10
public m2: string;
11
11
public m22: C; // don't generate
12
12
~~~~~~~~~~~~~~
13
- !!! Property 'm22' of exported interface has or is using private name 'C'.
13
+ !!! Public property 'm22' of exported class has or is using private name 'C'.
14
14
public m23: E;
15
15
public m24: I1;
16
16
public m25: I2; // don't generate
17
17
~~~~~~~~~~~~~~~
18
- !!! Property 'm25' of exported interface has or is using private name 'I2'.
18
+ !!! Public property 'm25' of exported class has or is using private name 'I2'.
19
19
public m232(): E { return null;}
20
20
public m242(): I1 { return null; }
21
21
public m252(): I2 { return null; } // don't generate
You can’t perform that action at this time.
0 commit comments