18 lines
570 B
Text
18 lines
570 B
Text
|
==== tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.ts (1 errors) ====
|
||
|
class clodule<T> {
|
||
|
id: string;
|
||
|
value: T;
|
||
|
|
||
|
private static sfn(id: string) { return 42; }
|
||
|
}
|
||
|
|
||
|
module clodule {
|
||
|
// error: duplicate identifier expected
|
||
|
export function fn<T>(x: T, y: T): number {
|
||
|
return clodule.sfn('a');
|
||
|
~~~~~~~~~~~
|
||
|
!!! Property 'clodule.sfn' is inaccessible.
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|