21 lines
860 B
Plaintext
21 lines
860 B
Plaintext
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.ts(11,16): error TS2341: Property 'sfn' is private and only accessible within class 'clodule<T>'.
|
|
|
|
|
|
==== 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');
|
|
~~~~~~~~~~~
|
|
!!! error TS2341: Property 'sfn' is private and only accessible within class 'clodule<T>'.
|
|
}
|
|
}
|
|
|
|
|