24 lines
No EOL
1 KiB
Text
24 lines
No EOL
1 KiB
Text
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.ts(5,12): error TS2300: Duplicate identifier 'fn'.
|
|
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.ts(10,21): error TS2300: Duplicate identifier 'fn'.
|
|
|
|
|
|
==== tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.ts (2 errors) ====
|
|
class clodule<T> {
|
|
id: string;
|
|
value: T;
|
|
|
|
static fn(id: string) { }
|
|
~~
|
|
!!! error TS2300: Duplicate identifier 'fn'.
|
|
}
|
|
|
|
module clodule {
|
|
// error: duplicate identifier expected
|
|
export function fn<T>(x: T, y: T): T {
|
|
~~
|
|
!!! error TS2300: Duplicate identifier 'fn'.
|
|
return x;
|
|
}
|
|
}
|
|
|
|
|