2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.ts(5,12): error TS2300: Duplicate identifier 'fn'.
|
2014-10-01 20:27:20 +02:00
|
|
|
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.ts(10,21): error TS2300: Duplicate identifier 'fn'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
==== tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.ts (2 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
class clodule<T> {
|
|
|
|
id: string;
|
|
|
|
value: T;
|
|
|
|
|
|
|
|
static fn(id: string) { }
|
2014-10-01 02:15:18 +02:00
|
|
|
~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'fn'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module clodule {
|
|
|
|
// error: duplicate identifier expected
|
|
|
|
export function fn<T>(x: T, y: T): T {
|
2014-10-01 20:27:20 +02:00
|
|
|
~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'fn'.
|
2014-07-13 01:04:16 +02:00
|
|
|
return x;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|